Skip to content

Stream names are being truncated by _NeoBaseExtractor #4185

@bparks13

Description

@bparks13

The following data is recorded using the ONIX Source plugin from the Open Ephys GUI.

When loading data using the open-ephys-python-tools, the following stream names are displayed:

ONIX_Source-100.BreakoutBoard-AnalogIO-AnalogInput/
ONIX_Source-100.BreakoutBoard-MemoryMonitor-PercentUsed/
ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-Probe-AP/
ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-Probe-LFP/
ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-BNO055/

However, when loading the same data using the SpikeInterface read_openephys extractor, the following stream names are displayed:

Stream 0 | Record Node 103#ONIX_Source-100.BreakoutBoard-AnalogIO-AnalogInp
Stream 1 | Record Node 103#ONIX_Source-100.BreakoutBoard-MemoryMonitor-Perc
Stream 2 | Record Node 103#ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-B
Stream 3 | Record Node 103#ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-P
Stream 4 | Record Node 103#ONIX_Source-100.PortA-Neuropixels1.0eHeadstage-P

The stream_name variable in SpikeInterface is truncating the stream name. This appears to be coming from the _NeoBaseExtractor.get_streams method, and affects loading data when trying to set either the stream_name or the stream_id; the stream_name is the same for both streams, and the stream_id pulls from the stream_name variable, which ends up loading the same data when trying to load stream 3 or stream 4 above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions