Skip to content

Commit

Permalink
test memmap fix (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 authored Aug 8, 2024
1 parent df06e9c commit df72e31
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/spikeanalysis/stimulus_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,12 @@ def _intan_neo_read_no_dig(self, reader: neo.rawio.IntanRawIO, time_slice: tuple
the raw digital data stored. Cannot be used. Must be processed first.
"""
digital_memmap = reader._raw_data["DIGITAL-IN"] # directly grab memory map from neo
try:
digital_memmap = reader._raw_data['USB board digital input channel'] # this will be the field name now
except ValueError:
# As of PR1491 the name has changed keep this for back compatibility
digital_memmap = reader._raw_data["DIGITAL-IN"] # directly grab memory map from neo

dig_size = digital_memmap.size
dig_shape = digital_memmap.shape
# below we have all the shaping information necessary
Expand Down

0 comments on commit df72e31

Please sign in to comment.