python-neo: Spike2IO chan_info problem

Apologies in advance - I am new to spike2 and to neo… I have a large number of smr files and would like to write some code to scrape the data all into one place in python.

I am trying to open smr files in python3.7 using neo v0.9.0.dev as follows:

reader = neo.Spike2IO(filename='example1.smr') reader.read()[0]

but get the following error:

chan_info['type'] = dict_kind[chan_info['kind']]
KeyError: 255

I get this error for all smr files I have tried. Could it be a problem with how channels are defined in my files?

I have uploaded two example smr files

Cheers! Dave

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Maybe if pyson is opensource maybe we should be able to infer the specification from the code. But my guess is that pyson will be only a wrapper on top of windows dll. So it will be very retrictive to use (win + closed dll). I think users should insist to have spec.

I get the same error when I try to read a .smrx file from Spike2. The code reader = neo.io.Spike2IO(filename='filename.smrx') produces KeyError: 255. I believe .smrx are 64 bit files and .smr are 32 bit. Hopefully, .smrx support can be added as neo seems like a great tool to help with processing ephys data.