Skip to content

Commit 5e3ccd9

Browse files
authored
Merge pull request #1760 from zm711/neuronexus-bug
NeuroNexusRawIO: Fix bug in timestamp validation error
2 parents 0dc4eeb + c0018fe commit 5e3ccd9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

neo/rawio/neuronexusrawio.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,7 @@
2424
2525
An additional note on channels. It appears that analog channels are called `pri` or
2626
`ai0` within the metadata whereas digital channels are called `din0` or `dout0`.
27-
In this first implementation it is up to the user to do the appropriate channel slice
28-
to only get the data they want. This is a buffer-based approach that Sam likes.
29-
Eventually we will try to divide these channels into streams (analog vs digital) or
30-
we can come up with a work around if users open an issue requesting this.
27+
3128
3229
Zach McKenzie
3330
@@ -159,7 +156,7 @@ def _parse_header(self):
159156
# given metadata
160157
if self._timestamps[0] != self.metadata["status"]["timestamp_range"][0]:
161158
metadata_start = self.metadata["status"]["timestamp_range"][0]
162-
data_start = self._teimstamps[0]
159+
data_start = self._timestamps[0]
163160
raise NeoReadWriteError(
164161
f"The metadata indicates a different starting timestamp {metadata_start} than the data starting timestamp {data_start}"
165162
)

0 commit comments

Comments
 (0)