Skip to content

Commit a1cf336

Browse files
committed
Undo out of scope changes.
1 parent 4d7246a commit a1cf336

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/spikeinterface/core/baserecording.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,14 +539,15 @@ def shift_times(self, shift: int | float, segment_index: int | None = None) -> N
539539
else:
540540
rs.t_start += shift
541541

542-
def sample_index_to_time(self, sample_ind: int, segment_index: int | None = None):
543-
""" """
542+
def sample_index_to_time(self, sample_ind, segment_index=None):
543+
"""
544+
Transform sample index into time in seconds
545+
"""
544546
segment_index = self._check_segment_index(segment_index)
545547
rs = self._recording_segments[segment_index]
546548
return rs.sample_index_to_time(sample_ind)
547549

548-
def time_to_sample_index(self, time_s: float, segment_index: int | None = None):
549-
""" """
550+
def time_to_sample_index(self, time_s, segment_index=None):
550551
segment_index = self._check_segment_index(segment_index)
551552
rs = self._recording_segments[segment_index]
552553
return rs.time_to_sample_index(time_s)

0 commit comments

Comments
 (0)