We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbe4193 commit e8eaf95Copy full SHA for e8eaf95
src/probeinterface/io.py
@@ -1700,9 +1700,9 @@ def read_openephys(
1700
raise Exception("NP_PROBE field not found in settings")
1701
return None
1702
1703
- # In neuropixel plugin 0.7, the option for enabling/disabling probes was added.
+ # In neuropixel plugin 0.7.0, the option for enabling/disabling probes was added.
1704
# Make sure we only keep enabled probes.
1705
- if editor.find("NP_PROBE") and "isEnabled" in editor.find("NP_PROBE").attrib.keys():
+ 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"]
1707
if len(np_probes) == 0:
1708
if raise_error:
0 commit comments