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 a1cf336
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/spikeinterface/core/baserecording.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,14 +539,15 @@ 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):
"""
Transform sample index into time in seconds
"""
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 a1cf336

Please sign in to comment.