Skip to content

Neuralynx header read error #1100

@nmarkowitz

Description

@nmarkowitz

Hi,

I'm trying to read neuralynx (.ncs) files but I keep getting an error.

from neo.io import NeuralynxIO
nlxDir = 'mydata' # Directionary containing .ncs files
reader = NeuralynxIO(dirname=nlxDir)

Traceback (most recent call last):
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\IPython\core\interactiveshell.py", line 3444, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-2-871ff3d292cc>", line 5, in <module>
    nlx = NeuralynxIO(dirname=dname) # dirname=dname, filename=fname1
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\neo\io\neuralynxio.py", line 58, in __init__
    BaseFromRaw.__init__(self, dirname)
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\neo\io\basefromrawio.py", line 74, in __init__
    self.parse_header()
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\neo\rawio\baserawio.py", line 185, in parse_header
    self._parse_header()
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\neo\rawio\neuralynxrawio\neuralynxrawio.py", line 185, in _parse_header
    info = NlxHeader(filename)
  File "C:\Users\nmarkowitz\.conda\envs\ieeg2\lib\site-packages\neo\rawio\neuralynxrawio\nlxheader.py", line 166, in __init__

I've tried this on both a Windows and Mac computer and have come up with the same error. Any idea what could be causing this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions