File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1700,11 +1700,9 @@ def read_openephys(
1700
1700
raise Exception ("NP_PROBE field not found in settings" )
1701
1701
return None
1702
1702
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.
1704
1704
# 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 ():
1708
1706
np_probes = [probe for probe in editor .findall ("NP_PROBE" ) if probe .attrib ["isEnabled" ] == "1" ]
1709
1707
if len (np_probes ) == 0 :
1710
1708
if raise_error :
You can’t perform that action at this time.
0 commit comments