Skip to content

Commit

Permalink
Update src/spikeinterface/core/binaryrecordingextractor.py
Browse files Browse the repository at this point in the history
Co-authored-by: Garcia Samuel <[email protected]>
  • Loading branch information
h-mayorquin and samuelgarcia authored Jul 5, 2024
1 parent 0ca9da5 commit a0d8097
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/spikeinterface/core/binaryrecordingextractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,14 +193,6 @@ def get_traces(
end_frame: int | None = None,
channel_indices: list | None = None,
) -> np.ndarray:
if start_frame is None:
start_frame = 0

if end_frame is None:
end_frame = self.get_num_samples()

if end_frame > self.get_num_samples():
raise ValueError(f"end_frame {end_frame} is larger than the number of samples {self.get_num_samples()}")

# Calculate byte offsets for start and end frames
start_byte = self.file_offset + start_frame * self.bytes_per_sample
Expand Down

0 comments on commit a0d8097

Please sign in to comment.