mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-01-10 17:19:34 +01:00
Add explicit kwarg name to _freq_to_index to avoid confusion
This commit is contained in:
parent
a4498cfd83
commit
bdb9e18964
@ -146,14 +146,18 @@ class FrequencyCrop(torch.nn.Module):
|
|||||||
low_index = None
|
low_index = None
|
||||||
if min_freq is not None:
|
if min_freq is not None:
|
||||||
low_index = _frequency_to_index(
|
low_index = _frequency_to_index(
|
||||||
min_freq, self.samplerate, self.n_fft
|
min_freq,
|
||||||
|
n_fft=self.n_fft,
|
||||||
|
samplerate=self.samplerate,
|
||||||
)
|
)
|
||||||
self.low_index = low_index
|
self.low_index = low_index
|
||||||
|
|
||||||
high_index = None
|
high_index = None
|
||||||
if max_freq is not None:
|
if max_freq is not None:
|
||||||
high_index = _frequency_to_index(
|
high_index = _frequency_to_index(
|
||||||
max_freq, self.samplerate, self.n_fft
|
max_freq,
|
||||||
|
n_fft=self.n_fft,
|
||||||
|
samplerate=self.samplerate,
|
||||||
)
|
)
|
||||||
self.high_index = high_index
|
self.high_index = high_index
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user