From 00f39adf4d1d5d277f9b602a8b6cbc725a17ad67 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Sat, 27 Jan 2024 16:25:29 +0000 Subject: [PATCH] Fix reference to builder --- src/gradients/pulsed_gradients.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gradients/pulsed_gradients.jl b/src/gradients/pulsed_gradients.jl index 563676c..7b8ab68 100644 --- a/src/gradients/pulsed_gradients.jl +++ b/src/gradients/pulsed_gradients.jl @@ -46,9 +46,8 @@ end @global_model_constructor PulsedGradient function PulsedGradient(model::Model; orientation=:bvec, slew_rate=nothing, rise_time=nothing, flat_time=nothing, kwargs...) - model = owner_model(builder) res = PulsedGradient( - builder, + model, orientation, [get_free_variable(model, value) for value in (slew_rate, rise_time, flat_time)]... ) -- GitLab