Skip to content

Commit cc050bd

Browse files
committed
naming changes
1 parent 7df28a9 commit cc050bd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

neo/rawio/intanrawio.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -531,13 +531,14 @@ def _demultiplex_digital_data(self, raw_digital_data, channel_ids, i_start, i_st
531531

532532
return output
533533

534-
def get_intan_sample_indices(self, i_start=None, i_stop=None):
534+
def get_intan_timestamps(self, i_start=None, i_stop=None):
535535
"""
536536
Retrieves the sample indices from the Intan raw data within a specified range.
537537
538-
This function extracts the sample index timestamps from Intan files, which represent
539-
relative time points in sample units (not absolute time). These indices can be
540-
particularly useful when working with recordings that have discontinuities.
538+
Note that sample indices are called timestamps in the Intan format but they are
539+
in fact just sample indices. This function extracts the sample index timestamps
540+
from Intan files, which represent relative time points in sample units (not absolute time).
541+
These indices can be particularly useful when working with recordings that have discontinuities.
541542
542543
Parameters
543544
----------
@@ -597,7 +598,7 @@ def _assert_timestamp_continuity(self):
597598
The error message includes a table detailing the discontinuities found.
598599
"""
599600
# check timestamp continuity
600-
timestamps = self.get_intan_sample_indices()
601+
timestamps = self.get_intan_timestamps()
601602

602603
discontinuous_timestamps = np.diff(timestamps) != 1
603604
timestamps_are_not_contiguous = np.any(discontinuous_timestamps)

0 commit comments

Comments
 (0)