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

Switch slice_thickness unit from um to mm

parent c5b47755
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ If not set, they will be determined during the sequence optimisation. ...@@ -37,7 +37,7 @@ If not set, they will be determined during the sequence optimisation.
- [`qval`](@ref)/[`qvec`](@ref): Spatial scale on which spins will be dephased due to this pulsed gradient in rad/um (given by `δ` * `gradient_strength`). - [`qval`](@ref)/[`qvec`](@ref): Spatial scale on which spins will be dephased due to this pulsed gradient in rad/um (given by `δ` * `gradient_strength`).
### Pulse variables ### Pulse variables
Any variables defined for the specific pulse added. Also: Any variables defined for the specific pulse added. Also:
- [`slice_thickness`](@ref): vector with the slice thickness - [`slice_thickness`](@ref): vector with the slice thickness in mm.
The [`bvalue`](@ref) can be constrained for multiple gradient pulses. The [`bvalue`](@ref) can be constrained for multiple gradient pulses.
""" """
...@@ -130,7 +130,7 @@ slew_rate(g::TrapezoidGradient) = g.slew_rate ...@@ -130,7 +130,7 @@ slew_rate(g::TrapezoidGradient) = g.slew_rate
δ(g::TrapezoidGradient) = rise_time(g) + flat_time(g) δ(g::TrapezoidGradient) = rise_time(g) + flat_time(g)
duration(g::TrapezoidGradient) = 2 * rise_time(g) + flat_time(g) duration(g::TrapezoidGradient) = 2 * rise_time(g) + flat_time(g)
qvec(g::TrapezoidGradient, ::Nothing, ::Nothing) = δ(g) .* gradient_strength(g) .* 2π qvec(g::TrapezoidGradient, ::Nothing, ::Nothing) = δ(g) .* gradient_strength(g) .* 2π
inverse_slice_thickness(g::TrapezoidGradient) = isnothing(g.pulse) ? nothing : inverse_bandwidth(g) .* gradient_strength(g) inverse_slice_thickness(g::TrapezoidGradient) = isnothing(g.pulse) ? nothing : inverse_bandwidth(g) .* gradient_strength(g) .* 1000
function variables(tg::TrapezoidGradient) function variables(tg::TrapezoidGradient)
list = [qvec, δ, gradient_strength, duration, rise_time, flat_time] list = [qvec, δ, gradient_strength, duration, rise_time, flat_time]
......
...@@ -19,8 +19,8 @@ all_variables_symbols = [ ...@@ -19,8 +19,8 @@ all_variables_symbols = [
:inverse_bandwidth => "Inverse of the [`bandwidth`](@ref) of the RF pulse in ms", :inverse_bandwidth => "Inverse of the [`bandwidth`](@ref) of the RF pulse in ms",
:N_left => "The number of zero crossings of the RF pulse before the main peak", :N_left => "The number of zero crossings of the RF pulse before the main peak",
:N_right => "The number of zero crossings of the RF pulse after the main peak", :N_right => "The number of zero crossings of the RF pulse after the main peak",
:slice_thickness => "Slice thickness of an RF pulse that is active during a gradient.", :slice_thickness => "Slice thickness of an RF pulse that is active during a gradient in mm.",
:inverse_slice_thickness => "Inverse of the [`slice_thickness`](@ref) in 1/um.", :inverse_slice_thickness => "Inverse of the [`slice_thickness`](@ref) in 1/mm.",
], ],
# gradients # gradients
......
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