From 01f4b40c3f87b1e4c9daf3439727c8f74700dbc0 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <MichielCottaar@protonmail.com>
Date: Fri, 24 May 2024 16:22:49 +0100
Subject: [PATCH] Add variables. pre-amble

---
 src/parts/helper_functions.jl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/parts/helper_functions.jl b/src/parts/helper_functions.jl
index 927a226..77fdb83 100644
--- a/src/parts/helper_functions.jl
+++ b/src/parts/helper_functions.jl
@@ -216,9 +216,9 @@ function dwi_gradients(; type=:trapezoid, optimise=false, scanner=nothing, refoc
             group=group, orientation=o, Dict(key => get_index(value, i) for (key, value) in pairs(real_variables))...
             ) for (i, o) in enumerate((orientation, other_orientation))]
         if !isnothing(orientation) || refocus
-            apply_simple_constraint!(qval(g1), qval(g2))
+            apply_simple_constraint!(variables.qval(g1), variables.qval(g2))
         else
-            apply_simple_constraint!(qval(g1), -qval(g2))
+            apply_simple_constraint!(variables.qval(g1), -variables.qval(g2))
         end
         for var_func in match
             if var_func isa Symbol
-- 
GitLab