Resolve "Allow slice selection"
Compare changes
- Michiel Cottaar authored
+ 20
− 5
@@ -6,7 +6,7 @@ module Trapezoids
@@ -6,7 +6,7 @@ module Trapezoids
import ...Variables: variables, @defvar, scanner_constraints!, get_free_variable, set_simple_constraints!, gradient_orientation, VariableType, get_gradient, get_pulse, get_readout, adjustable, adjust_internal, apply_simple_constraint!, add_cost_function!
@@ -146,7 +146,7 @@ variables.δ
@@ -146,7 +146,7 @@ variables.δ
@defvar qvec(g::BaseTrapezoid, ::Nothing, ::Nothing) = variables.δ(g) .* variables.gradient_strength(g) .* 2π
@@ -192,12 +192,14 @@ Parameters and variables are identical as for [`Trapezoid`](@ref) with the addit
@@ -192,12 +192,14 @@ Parameters and variables are identical as for [`Trapezoid`](@ref) with the addit
function SliceSelect(pulse::RFPulseComponent; orientation=nothing, rise_time=nothing, group=nothing, slew_rate=nothing, vars...)
Trapezoid(; orientation=orientation, rise_time=rise_time, flat_time=variables.duration(pulse), group=group, slew_rate=slew_rate),
@@ -221,6 +223,19 @@ get_pulse(ss::SliceSelect) = ss.pulse
@@ -221,6 +223,19 @@ get_pulse(ss::SliceSelect) = ss.pulse