python-neo: An OSError about header when importing neuralynx data

Describe the bug I was trying to import neuralynx data into python using neo. But, I got an OSError. This is a screenshot of the error. Screen Shot 2022-11-27 at 5 07 43 PM

Also, I noticed that there is a small bug in the line that raise the OSError. I think .format(an, av) is supposed to fill the first {} with an and the second {} with av. However, only the second string after the + calls .format(an, av) in the source code, which is why the error message is weird. Screen Shot 2022-11-27 at 5 19 11 PM

To Reproduce In order to reproduce, just use the two lines of code in the screenshot. The error occurs when reading a file that I can’t share publicly. Please get in touch with me and I will share the file privately.

Environment:

  • OS: Linux
  • Python version: 3.8.13
  • Neo version: 0.11.1

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Comments: 21 (18 by maintainers)

Most upvoted comments