Skip to content

Commit 7d50fc5

Browse files
committed
Improve reset_times docstring
1 parent 3c9a3e4 commit 7d50fc5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/spikeinterface/core/baserecording.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,11 @@ def set_times(self, times, segment_index=None, with_warning=True):
496496
)
497497

498498
def reset_times(self):
499-
"""Reset times in-memory for all segments that have a time vector."""
499+
"""
500+
Reset times in-memory for all segments that have a time vector.
501+
If the timestamps come from a file, the files won't be modified. but only the in-memory
502+
attributes of the recording objects are deleted.
503+
"""
500504
for segment_index in range(self.get_num_segments()):
501505
if self.has_time_vector(segment_index):
502506
rs = self._recording_segments[segment_index]

0 commit comments

Comments
 (0)