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")