Skip to content

Commit

Permalink
Update src/probeinterface/io.py
Browse files Browse the repository at this point in the history
Co-authored-by: Alessio Buccino <[email protected]>
  • Loading branch information
vigji and alejoe91 authored Nov 18, 2024
1 parent e8eaf95 commit 705c0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 705c0d1

Please sign in to comment.