Skip to content

Maxwell/MaxTwo header reading #1702

Open
@LeMuellerGuy

Description

@LeMuellerGuy

Describe the bug
Maxwell (MaxTwo) Datasets can have a mismatch between routed group and the channel mapping, which leads Neo to incorrectly assume channels exist that don't or may do so twice, which fails the header check.

To Reproduce
When recording a file with stimulation electrodes that are also routed as recording electrodes, the mapping file can contain the stimulation electrodes twice. When trying to load such a recording segment, the header check will fail.
Unfortunately the file is very unwieldy (multiple 100 GB) so sharing is a little difficult.

Expected behaviour
Neo should identify unique channels that are both present in the routed group and the mapping and only aquire those.

Environment:

  • OS: Windows
  • python: 3.12.7
  • neo: 0.14.1
  • numpy: 1.26.4

Since neo can currently only pull data from the "routed" group, it would be more stable to pull the list of channels from the routed group and then get the electrodes from the mapping using a mask. I'll create a pull request and link it here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions