Skip to content

Commit

Permalink
protected also num samples
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelgarcia committed Jun 25, 2024
1 parent 79a6cf3 commit f26c839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spikeinterface/core/baserecording.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ def get_traces(
"""
# @alessio
start_frame = int(start_frame) if start_frame is not None else 0
num_samples = self.get_num_samples()
num_samples = int(self.get_num_samples())
end_frame = int(min(end_frame, num_samples)) if end_frame is not None else num_samples

# @ramon @alessio @zach @joe @paul
Expand Down

0 comments on commit f26c839

Please sign in to comment.