Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 14, 2025
1 parent f00c791 commit 0442d88
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spikeinterface/core/baserecording.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0442d88

Please sign in to comment.