python-neo icon indicating copy to clipboard operation
python-neo copied to clipboard

NeuroshareIO not reading labels of digital events

Open borrepp opened this issue 2 years ago • 2 comments

I read a Ripple NEV file and get the correct time stamps from digital events, but the Labels (EventType = 3 ('16-bit binary values')) were not saved. I got labels as a numpy vector of "0" (str).

It might be something related to line 379 on neuroshareapiio.py ?

Environment: Python 3.8

Thanks in advance for your help

borrepp avatar Jun 01 '23 02:06 borrepp

Hi @borrepp Feel free to open a PR if you found the issue in the neo code causing this. Otherwise it would be helpful if you could provide a small file that demonstrates the issue. You can e.g. upload it here and ping me again here.

JuliaSprenger avatar Jun 06 '23 08:06 JuliaSprenger

Hi @JuliaSprenger

Thank you so much for reaching back. I have uploaded the file (datafile-2023-05-26-0001.nev & datafile-2023-05-26-0001.ns5). The digital events on the NEV file should give some labels (numbers) between 1 and 18. Let me know if you need any more information. I couldn't find where exactly the code is causing the issue, I didn't open a PR.

Thanks again for your help.

Best Pepe (@borrepp)

borrepp avatar Jun 06 '23 23:06 borrepp