From 9379f5364f01fefd2efb33c4d68674f0578733bd Mon Sep 17 00:00:00 2001 From: JoeZiminski Date: Wed, 13 Nov 2024 18:35:32 +0000 Subject: [PATCH] Undo out of scope changes. --- src/spikeinterface/core/baserecording.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/spikeinterface/core/baserecording.py b/src/spikeinterface/core/baserecording.py index 4b545dc7c7..4377aba321 100644 --- a/src/spikeinterface/core/baserecording.py +++ b/src/spikeinterface/core/baserecording.py @@ -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)