Skip to content
Snippets Groups Projects
Verified Commit 69f6244c authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix filtering of variables

parent 591a562e
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ function readout_event(; type, optimise=false, scanner=nothing, variables...)
if type == :instant
optimise = false # there is nothing to optimise
end
real_variables = Dict(key => value for (key, value) in pairs(variables) if !isnothing(variables))
real_variables = Dict(key => value for (key, value) in pairs(variables) if (!isnothing(value)) && (value isa AbstractVector && !all(isnothing.(value))))
build_sequence(scanner; optimise=optimise) do
func_dict = Dict(
:epi => EPIReadout,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment