From e393dbac004b10f64f847551cced4f2524088c76 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Wed, 31 Jan 2024 18:39:46 +0000 Subject: [PATCH] Fix constructor call --- src/overlapping/trapezoid_gradients.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/overlapping/trapezoid_gradients.jl b/src/overlapping/trapezoid_gradients.jl index 7a5621c..e2df23a 100644 --- a/src/overlapping/trapezoid_gradients.jl +++ b/src/overlapping/trapezoid_gradients.jl @@ -87,6 +87,7 @@ function TrapezoidGradient(model::Model; orientation=nothing, rise_time=nothing, rise_time = get_free_variable(model, rise_time) if isnothing(pulse) flat_time = get_free_variable(model, flat_time) + time_before_pulse = time_after_pulse = 0. elseif pulse isa RFPulseBlock flat_time = duration(pulse) time_before_pulse = time_after_pulse = 0. @@ -100,13 +101,11 @@ function TrapezoidGradient(model::Model; orientation=nothing, rise_time=nothing, rise_time, flat_time, slew_rate, - rate_1d, rotate, scale, time_before_pulse, pulse, time_after_pulse - ) set_simple_constraints!(model, res, kwargs) -- GitLab