Skip to content

Commit

Permalink
Undo out of scope changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeZiminski committed Nov 13, 2024
1 parent 4d7246a commit 9379f53
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/spikeinterface/core/baserecording.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,12 @@ def shift_times(self, shift: int | float, segment_index: int | None = None) -> N
else:
rs.t_start += shift

def sample_index_to_time(self, sample_ind: int, segment_index: int | None = None):
""" """
def sample_index_to_time(self, sample_ind, segment_index=None):
segment_index = self._check_segment_index(segment_index)
rs = self._recording_segments[segment_index]
return rs.sample_index_to_time(sample_ind)

def time_to_sample_index(self, time_s: float, segment_index: int | None = None):
""" """
def time_to_sample_index(self, time_s, segment_index=None):
segment_index = self._check_segment_index(segment_index)
rs = self._recording_segments[segment_index]
return rs.time_to_sample_index(time_s)
Expand Down

0 comments on commit 9379f53

Please sign in to comment.