Skip to content
Snippets Groups Projects
Verified Commit 00f39adf authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix reference to builder

parent 4f4ee278
No related branches found
No related tags found
No related merge requests found
......@@ -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)]...
)
......
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