Skip to content

Commit

Permalink
version check fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vigji committed Nov 18, 2024
1 parent fbe4193 commit e8eaf95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1700,9 +1700,9 @@ def read_openephys(
raise Exception("NP_PROBE field not found in settings")
return None

# 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.
# Make sure we only keep enabled probes.
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"):
np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "1"]
if len(np_probes) == 0:
if raise_error:
Expand Down

0 comments on commit e8eaf95

Please sign in to comment.