Skip to content

Open neuralynx (.ncs), events (.mrk, .nev) in neo #1060

@JulesGranget

Description

@JulesGranget

Hi !
I wanted to open some .ncs files and events files attached that I have in a folder. I knew that neo could do it so I tried with it and gave the name of my folder as follow :

reader = neo.io.NeuralynxIO(dirname=path_dirname)

But I got this error message :

Traceback (most recent call last):
File "", line 1, in
File "D:\Anaconda3\lib\site-packages\neo\io\neuralynxio.py", line 51, in init
File "D:\Anaconda3\lib\site-packages\neo\io\basefromrawio.py", line 75, in init
File "D:\Anaconda3\lib\site-packages\neo\rawio\baserawio.py", line 149, in parse_header
File "D:\Anaconda3\lib\site-packages\neo\rawio\neuralynxrawio.py", line 111, in _parse_header
info = NlxHeader.build_for_file(filename)
File "D:\Anaconda3\lib\site-packages\neo\rawio\neuralynxrawio.py", line 798, in build_for_file
original_filename = re.search(hpd['filename_regex'], txt_header).groupdict()['filename']
AttributeError: 'NoneType' object has no attribute 'groupdict'

Do you have any idea what could possibly go wrong ? I looked at the doc but didn't find something to help me.
Thanks for your answer !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions