Skip to content

Commit

Permalink
Remove check on start_frame > end_frame
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jun 22, 2024
1 parent a3a27cf commit a18ea3b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/spikeinterface/core/baserecording.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,6 @@ def get_traces(
end_frame = int(min(end_frame, rs.get_num_samples())) if end_frame is not None else rs.get_num_samples()
if start_frame < 0:
raise ValueError("start_frame cannot be negative")
if start_frame > end_frame:
raise ValueError("start_frame cannot be greater than end_frame")
traces = rs.get_traces(start_frame=start_frame, end_frame=end_frame, channel_indices=channel_indices)
if order is not None:
assert order in ["C", "F"]
Expand Down

0 comments on commit a18ea3b

Please sign in to comment.