You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/parse.jl
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -177,7 +177,7 @@ function parse_di(di_name::AbstractString, hdr::Dict{String,Any}; load_unused =
177
177
end
178
178
for i =1:length(chns)
179
179
biti =findfirst(x->x==parse(Int, split(chns[i], ".")[2]), hdr["di channel list"])
180
-
if biti !=findfirst(x->x==chns[i], DI_CHANS[rig])
180
+
if biti !=firstfound(x->x==chns[i], DI_CHANS[rig])
181
181
@warn"DI channel list entry #$(biti) found in the .imagine header does not match the expected entry for this rig. Attempting to load anyway, but please report this issue"
182
182
end
183
183
end
@@ -220,7 +220,7 @@ function parse_di(di_name, rig, sample_rate::HasInverseTimeUnits)
220
220
for i =1:length(insigs)
221
221
sig = insigs[i]
222
222
daq_chan_str =daq_channel(sig)
223
-
biti =findfirst(x->x==daq_chan_str, DI_CHANS[rig])
223
+
biti =firstfound(x->x==daq_chan_str, DI_CHANS[rig])
224
224
samps =mappedarray(UInt8, view(A, biti, :)) #feels a bit dishonest to call UInt8 the raw type, but there is no Bit type...
225
225
sampsarr =Array{AbstractVector}(undef, 0)
226
226
push!(sampsarr, samps)
@@ -298,3 +298,12 @@ function load_signals(any_name::AbstractString)
0 commit comments