From 33b689a27d32fbed8ff0b799143d924f71c5add7 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Thu, 29 Aug 2024 15:32:59 +0200 Subject: [PATCH] Fix open-ephys load with serial number as custom probe name --- src/probeinterface/io.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probeinterface/io.py b/src/probeinterface/io.py index 58884aa..ea070d1 100644 --- a/src/probeinterface/io.py +++ b/src/probeinterface/io.py @@ -1807,7 +1807,7 @@ def read_openephys( "Use one of 'stream_name', 'probe_name', " "or 'serial_number'" ) for probe_idx, probe_info in enumerate(np_probes_info): - if probe_info["name"] in stream_name: + if probe_info["name"] in stream_name or probe_info["serial_number"] in stream_name: found = True break if not found: