diff --git a/src/probeinterface/neuropixels_tools.py b/src/probeinterface/neuropixels_tools.py index 75df3106..7ed188bb 100644 --- a/src/probeinterface/neuropixels_tools.py +++ b/src/probeinterface/neuropixels_tools.py @@ -1000,13 +1000,17 @@ def read_openephys( if len(stream_fields) > 0: has_streams = True streams = [] - # find probe names (exclude ADC streams) + probe_names_used = [] for stream_field in stream_fields: stream = stream_field.attrib["name"] - if "ADC" not in stream: - streams.append(stream) - # find probe names (exclude ADC streams) - probe_names_used = np.unique([stream.split("-")[0] for stream in streams]) + # exclude ADC streams + if "ADC" in stream: + continue + streams.append(stream) + # find probe name (exclude "-AP"/"-LFP" from stream name) + stream = stream.replace("-AP", "").replace("-LFP", "") + if stream not in probe_names_used: + probe_names_used.append(stream) else: has_streams = False probe_names_used = None diff --git a/tests/data/openephys/OE_Neuropix-PXI-QuadBase/settings.xml b/tests/data/openephys/OE_Neuropix-PXI-QuadBase/settings.xml old mode 100755 new mode 100644 index c2c9996d..60a60c03 --- a/tests/data/openephys/OE_Neuropix-PXI-QuadBase/settings.xml +++ b/tests/data/openephys/OE_Neuropix-PXI-QuadBase/settings.xml @@ -2,2722 +2,1426 @@ - 0.6.6 - 8 - 31 Jan 2025 17:56:19 + 1.0.0-dev + 9 + 28 Apr 2025 9:35:53 Windows 10 - + - - - - - - - - - - - - - - - - - + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + - -
+ +
+ + + + + + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - + +