Skip to content

Commit 705c0d1

Browse files
vigjialejoe91
andauthored
Update src/probeinterface/io.py
Co-authored-by: Alessio Buccino <[email protected]>
1 parent e8eaf95 commit 705c0d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/probeinterface/io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1703,7 +1703,7 @@ def read_openephys(
17031703
# In neuropixel plugin 0.7.0, the option for enabling/disabling probes was added.
17041704
# Make sure we only keep enabled probes.
17051705
if neuropix_pxi_version >= parse("0.7.0") and neuropix_pxi_version < parse("1.0.0dev0"):
1706-
np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "1"]
1706+
np_probes = [probe for probe in np_probes if probe.attrib["isEnabled"] == "1"]
17071707
if len(np_probes) == 0:
17081708
if raise_error:
17091709
raise Exception("No enabled probes found in settings")

0 commit comments

Comments
 (0)