Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions idtap/spectrogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def crop_frequency(self, min_hz: Optional[float] = None,
cropped_data,
self.audio_id,
freq_range=(freq_bins[min_idx], freq_bins[max_idx - 1] if max_idx > min_idx else freq_bins[min_idx]),
bins_per_octave=self.bins_per_octave
bins_per_octave=self.bins_per_octave,
time_resolution=self._time_resolution
)

def crop_time(self, start_time: Optional[float] = None,
Expand Down Expand Up @@ -277,7 +278,8 @@ def crop_time(self, start_time: Optional[float] = None,
cropped_data,
self.audio_id,
freq_range=self.freq_range,
bins_per_octave=self.bins_per_octave
bins_per_octave=self.bins_per_octave,
time_resolution=self._time_resolution
)

def get_extent(self) -> List[float]:
Expand Down
Loading