Skip to content

Commit fbe4193

Browse files
committed
version bug fix
1 parent e82d1b6 commit fbe4193

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/probeinterface/io.py

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

1703-
# In neuropixel plugin 0.6.7, the option for enabling/disabling probes was added.
1703+
# In neuropixel plugin 0.7, the option for enabling/disabling probes was added.
17041704
# Make sure we only keep enabled probes.
1705-
1706-
# I don't understand why the range, but otherwise the test with OE_1.0_Neuropix-PXI-multi-probe fails:
1707-
if oe_version >= parse("0.6.7") and oe_version <= parse("0.9.0"):
1705+
if editor.find("NP_PROBE") and "isEnabled" in editor.find("NP_PROBE").attrib.keys():
17081706
np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "1"]
17091707
if len(np_probes) == 0:
17101708
if raise_error:

0 commit comments

Comments
 (0)