Skip to content

Commit f00c791

Browse files
alejoe91zm711
andauthored
Apply suggestions from code review
Co-authored-by: Zach McKenzie <92116279+zm711@users.noreply.github.com>
1 parent 50ad2c3 commit f00c791

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/spikeinterface/core/base.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -761,7 +761,6 @@ def load(file_path: Union[str, Path], base_folder: Optional[Union[Path, str, boo
761761
* save (...) a folder which contain data + json (or pickle) + metadata.
762762
763763
"""
764-
print(file_path, is_path_remote(file_path))
765764
if not is_path_remote(file_path):
766765
file_path = Path(file_path)
767766

src/spikeinterface/core/baserecording.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def get_total_duration(self, use_times=True) -> float:
261261
float
262262
The duration in seconds
263263
"""
264-
duration = sum([self.get_duration(idx, use_times) for idx in range(self.get_num_segments())])
264+
duration = sum([self.get_duration(segment_index, use_times) for segment_index in range(self.get_num_segments())])
265265
return duration
266266

267267
def get_memory_size(self, segment_index=None) -> int:

0 commit comments

Comments
 (0)