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

Add variables. pre-amble

parent 9c8404a0
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -216,9 +216,9 @@ function dwi_gradients(; type=:trapezoid, optimise=false, scanner=nothing, refoc ...@@ -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))... 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))] ) for (i, o) in enumerate((orientation, other_orientation))]
if !isnothing(orientation) || refocus if !isnothing(orientation) || refocus
apply_simple_constraint!(qval(g1), qval(g2)) apply_simple_constraint!(variables.qval(g1), variables.qval(g2))
else else
apply_simple_constraint!(qval(g1), -qval(g2)) apply_simple_constraint!(variables.qval(g1), -variables.qval(g2))
end end
for var_func in match for var_func in match
if var_func isa Symbol if var_func isa Symbol
......
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