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

Make gradient spoiler available

parent 8ca150e6
No related branches found
No related tags found
No related merge requests found
...@@ -284,7 +284,7 @@ function interpret_image_size(fov, resolution, voxel_size, slice_thickness) ...@@ -284,7 +284,7 @@ function interpret_image_size(fov, resolution, voxel_size, slice_thickness)
end end
""" """
spoiler_gradient(; optimise=false, orientation=[0, 0, 1], rotate=:FOV, scale=:spoiler, spoiler_scale=1., duration=:min, variables...) gradient_spoiler(; optimise=false, orientation=[0, 0, 1], rotate=:FOV, scale=:spoiler, spoiler_scale=1., duration=:min, variables...)
Returns two DWI gradients that are guaranteed to cancel each other out. Returns two DWI gradients that are guaranteed to cancel each other out.
...@@ -299,7 +299,7 @@ Returns two DWI gradients that are guaranteed to cancel each other out. ...@@ -299,7 +299,7 @@ Returns two DWI gradients that are guaranteed to cancel each other out.
- [`spoiler_scale`](@ref): maximum spoiler scale (before applying any reductions due to `scale`). - [`spoiler_scale`](@ref): maximum spoiler scale (before applying any reductions due to `scale`).
- Any other parameters expected by [`Trapezoid`](@ref). - Any other parameters expected by [`Trapezoid`](@ref).
""" """
function spoiler_gradient(; optimise=false, scanner=nothing, orientation=[0, 0, 1], group=:FOV, spoiler_scale=1., duration=:min, variables...) function gradient_spoiler(; optimise=false, scanner=nothing, orientation=[0, 0, 1], group=:FOV, spoiler_scale=1., duration=:min, variables...)
build_sequence(scanner; optimise=optimise) do build_sequence(scanner; optimise=optimise) do
Trapezoid(; orientation=orientation, group=group, spoiler_scale=spoiler_scale, duration=duration, variables...) Trapezoid(; orientation=orientation, group=group, spoiler_scale=spoiler_scale, duration=duration, variables...)
end end
......
...@@ -9,7 +9,7 @@ import .Trapezoids: Trapezoid, SliceSelect, LineReadout, opposite_kspace_lines ...@@ -9,7 +9,7 @@ import .Trapezoids: Trapezoid, SliceSelect, LineReadout, opposite_kspace_lines
import .SpoiltSliceSelects: SpoiltSliceSelect import .SpoiltSliceSelects: SpoiltSliceSelect
import .SliceSelectRephases: SliceSelectRephase import .SliceSelectRephases: SliceSelectRephase
import .EPIReadouts: EPIReadout import .EPIReadouts: EPIReadout
import .HelperFunctions: excitation_pulse, refocus_pulse, readout_event, dwi_gradients, interpret_image_size import .HelperFunctions: excitation_pulse, refocus_pulse, readout_event, dwi_gradients, interpret_image_size, gradient_spoiler
end end
\ No newline at end of file
...@@ -19,7 +19,7 @@ If image parameters are provided, this will switch to a sinc pulse and EPI reado ...@@ -19,7 +19,7 @@ If image parameters are provided, this will switch to a sinc pulse and EPI reado
## Parameters ## Parameters
- [`excitation`](@ref): properties of the excitation pulse as described in [`excitation_pulse`](@ref). - [`excitation`](@ref): properties of the excitation pulse as described in [`excitation_pulse`](@ref).
- [`readout`](@ref): properties of the readout as described in [`readout_event`](@ref). - [`readout`](@ref): properties of the readout as described in [`readout_event`](@ref).
- [`spoiler`](@ref): if set adds a spoiler [`gradient_spoiler`](@ref) gradient after the readout (e.g., `spoiler=(spoiler_scale=1, orientation=[0, 0, 1], group=:FOV)` to add a gradient in the z-direction of the `FOV` coordinate system that fully dephases spins over 1 mm). - [`spoiler`](@ref): if set adds a spoiler [`gradient_spoiler`](@ref) gradient after the readout (e.g., `spoiler=()` to add a gradient in the z-direction of the `FOV` coordinate system that fully dephases spins over 1 mm).
- Image parameters ([`resolution`](@ref)/[`fov`](@ref)/[`voxel_size`](@ref)/[`slice_thickness`](@ref)): describe the properties of the resulting image. See [`interpret_image_size`](@ref) for details. - Image parameters ([`resolution`](@ref)/[`fov`](@ref)/[`voxel_size`](@ref)/[`slice_thickness`](@ref)): describe the properties of the resulting image. See [`interpret_image_size`](@ref) for details.
- [`optim`](@ref): parameters to pass on to the Ipopt optimiser (see https://coin-or.github.io/Ipopt/OPTIONS.html). - [`optim`](@ref): parameters to pass on to the Ipopt optimiser (see https://coin-or.github.io/Ipopt/OPTIONS.html).
......
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