Skip to content
Snippets Groups Projects
Unverified Commit 6562f92c authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix calling of qval

parent ecede306
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
......@@ -24,9 +24,9 @@ function SliceSelectRephase(pulse::RFPulseComponent; orientation=nothing, group=
Trapezoid(; orientation=rephase_orientation, group=group, kwargs...)
)
if N == 1
apply_simple_constraint!(qval(res.slice_select, :pulse, nothing), qval(res.rephase))
apply_simple_constraint!(variables.qval(res.slice_select, :pulse, nothing), variables.qval(res.rephase))
else
apply_simple_constraint!(qval(res.slice_select, :pulse, nothing), -qval(res.rephase))
apply_simple_constraint!(variables.qval(res.slice_select, :pulse, nothing), -variables.qval(res.rephase))
end
return res
end
......
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