diff --git a/src/spikeinterface/core/baserecording.py b/src/spikeinterface/core/baserecording.py index 9873265c37..fbdd1fa5ba 100644 --- a/src/spikeinterface/core/baserecording.py +++ b/src/spikeinterface/core/baserecording.py @@ -261,7 +261,9 @@ def get_total_duration(self, use_times=True) -> float: float The duration in seconds """ - duration = sum([self.get_duration(segment_index, use_times) for segment_index in range(self.get_num_segments())]) + duration = sum( + [self.get_duration(segment_index, use_times) for segment_index in range(self.get_num_segments())] + ) return duration def get_memory_size(self, segment_index=None) -> int: