From 705c0d141797a8911123faee4ccf4ad86efd045c Mon Sep 17 00:00:00 2001 From: Luigi Petrucco Date: Mon, 18 Nov 2024 16:23:31 +0100 Subject: [PATCH] Update src/probeinterface/io.py Co-authored-by: Alessio Buccino --- 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 d175157..a74cc3c 100644 --- a/src/probeinterface/io.py +++ b/src/probeinterface/io.py @@ -1703,7 +1703,7 @@ def read_openephys( # In neuropixel plugin 0.7.0, the option for enabling/disabling probes was added. # Make sure we only keep enabled probes. if neuropix_pxi_version >= parse("0.7.0") and neuropix_pxi_version < parse("1.0.0dev0"): - np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "1"] + np_probes = [probe for probe in np_probes if probe.attrib["isEnabled"] == "1"] if len(np_probes) == 0: if raise_error: raise Exception("No enabled probes found in settings")