Skip to content

Commit

Permalink
Added fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vigji committed Nov 15, 2024
1 parent 1fc2d35 commit cf89ba0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/probeinterface/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1699,6 +1699,12 @@ def read_openephys(
if raise_error:
raise Exception("NP_PROBE field not found in settings")
return None

np_probes = [probe for probe in editor.findall("NP_PROBE") if probe.attrib["isEnabled"] == "true"]
if len(np_probes) == 0:
if raise_error:
raise Exception("No enabled probes found in settings")
return None

# read probes info
# If STREAMs are not available, probes are sequentially named based on the node id
Expand Down

0 comments on commit cf89ba0

Please sign in to comment.