Skip to content

Cannot load SpikeGLX recording without snsMnMaXaDw #1240

Closed

Description

@DradeAW

Hi,

I'm trying to load a SpikeGLX recording, but I'm getting the following error:

import neo

io = neo.rawio.SpikeGLXRawIO(".")
io.parse_header()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/export/home1/users/nsr/wyngaard/dev/python-neo/neo/rawio/baserawio.py", line 179, in parse_header
    self._parse_header()
  File "/export/home1/users/nsr/wyngaard/dev/python-neo/neo/rawio/spikeglxrawio.py", line 86, in _parse_header
    self.signals_info_list = scan_files(self.dirname)
  File "/export/home1/users/nsr/wyngaard/dev/python-neo/neo/rawio/spikeglxrawio.py", line 259, in scan_files
    info = extract_stream_info(meta_filename, meta)
  File "/export/home1/users/nsr/wyngaard/dev/python-neo/neo/rawio/spikeglxrawio.py", line 420, in extract_stream_info
    mn, ma, xa, dw = [int(e) for e in meta['snsMnMaXaDw'].split(sep=',')]
KeyError: 'snsMnMaXaDw'

I'm on the newest version of neo (the development version) on Ubuntu 20.04.

Activity

  1. samuelgarcia commented on Mar 27, 2023

    @samuelgarcia
    Contributor

    Oups.
    Do you have the meta file for this ?

  2. samuelgarcia commented on Apr 3, 2023

    @samuelgarcia
    Contributor

    Salut Aurlien.
    The main reason is the the filename is breaking a bit the convention.
    02.221128_2023-03-10_g0_tcat.imec0.ap.meta you have an extra dot at the begnning after 02.
    but the dot is used as a field separator to detect imec0 and ap.

    I can make a small patch to improve this.

  3. added a commit that references this issue on Apr 3, 2023
  4. added this to the milestone on Apr 3, 2023
  5. added a commit that references this issue on Apr 3, 2023
  6. modified the milestones: , 0.13.0 on Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions