From 6562f92c3b3362aa530134bc245e345513f5b0cd Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <MichielCottaar@protonmail.com> Date: Sat, 25 May 2024 15:33:58 +0100 Subject: [PATCH] Fix calling of qval --- src/parts/slice_select_rephases.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parts/slice_select_rephases.jl b/src/parts/slice_select_rephases.jl index 5f291cb..94a7bfa 100644 --- a/src/parts/slice_select_rephases.jl +++ b/src/parts/slice_select_rephases.jl @@ -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 -- GitLab