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

Fix voxel size calculation

parent 6b41c492
No related branches found
No related tags found
1 merge request!2Define variables through new @defvar macro
...@@ -63,7 +63,7 @@ end ...@@ -63,7 +63,7 @@ end
@defvar readout 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)[1], 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))]
end end
get_readout(epi::EPIReadout) = epi.positive_line get_readout(epi::EPIReadout) = epi.positive_line
......
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