From 0442d889cbccf7ebbd108ef49319a700af1b4a03 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 14 Jan 2025 14:23:57 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/spikeinterface/core/baserecording.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: