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

Explain variables are readout

parent 2bc3fa76
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -61,7 +61,7 @@ function EPIReadout(; resolution::AbstractVector{<:Integer}, recenter=false, gro ...@@ -61,7 +61,7 @@ function EPIReadout(; resolution::AbstractVector{<:Integer}, recenter=false, gro
return res return res
end end
@defvar begin @defvar readout begin
inverse_fov(epi::EPIReadout) = [variables.inverse_fov(epi.positive_line), 1e3 * epi.ky_step] inverse_fov(epi::EPIReadout) = [variables.inverse_fov(epi.positive_line), 1e3 * epi.ky_step]
inverse_voxel_size(epi::EPIReadout) = [variables.inverse_voxel_size(epi.positive_line), 1e3 * epi.ky_step * maximum(abs.(epi.ky_lines))] inverse_voxel_size(epi::EPIReadout) = [variables.inverse_voxel_size(epi.positive_line), 1e3 * epi.ky_step * maximum(abs.(epi.ky_lines))]
resolution(epi::EPIReadout) = [variables.resolution(epi.positive_line), maximum(abs.(epi.ky_lines))] resolution(epi::EPIReadout) = [variables.resolution(epi.positive_line), maximum(abs.(epi.ky_lines))]
......
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