Skip to content

Commit e8eaf95

Browse files
committed
version check fix
1 parent fbe4193 commit e8eaf95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/probeinterface/io.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1700,9 +1700,9 @@ def read_openephys(
17001700
raise Exception("NP_PROBE field not found in settings")
17011701
return None
17021702

1703-
# In neuropixel plugin 0.7, the option for enabling/disabling probes was added.
1703+
# In neuropixel plugin 0.7.0, the option for enabling/disabling probes was added.
17041704
# Make sure we only keep enabled probes.
1705-
if editor.find("NP_PROBE") and "isEnabled" in editor.find("NP_PROBE").attrib.keys():
1705+
if neuropix_pxi_version >= parse("0.7.0") and neuropix_pxi_version < parse("1.0.0dev0"):
17061706
np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "1"]
17071707
if len(np_probes) == 0:
17081708
if raise_error:

0 commit comments

Comments
 (0)