We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f95c22a commit 27360daCopy full SHA for 27360da
src/spikeinterface/core/sortinganalyzer.py
@@ -821,7 +821,10 @@ def get_total_samples(self) -> int:
821
return s
822
823
def get_total_duration(self) -> float:
824
- duration = self.get_total_samples() / self.sampling_frequency
+ if self.has_recording() or self.has_temporary_recording():
825
+ duration = self.recording.get_total_duration()
826
+ else:
827
+ duration = self.get_total_samples() / self.sampling_frequency
828
return duration
829
830
def get_num_channels(self) -> int:
0 commit comments