From 902e297610144ccf1cff145a52b4eeab847ef4a9 Mon Sep 17 00:00:00 2001 From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk> Date: Fri, 23 Feb 2024 13:25:10 +0000 Subject: [PATCH] Set \Delta to by synonym of diffusion_time --- src/MRIBuilder.jl | 4 ++-- src/variables.jl | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/MRIBuilder.jl b/src/MRIBuilder.jl index 7bed966..08ee4b9 100644 --- a/src/MRIBuilder.jl +++ b/src/MRIBuilder.jl @@ -19,8 +19,8 @@ export build_sequence, global_model, global_scanner, fixed import .Scanners: Scanner, B0, Siemens_Connectom, Siemens_Prisma, Siemens_Terra export Scanner, B0, Siemens_Connectom, Siemens_Prisma, Siemens_Terra -import .Variables: variables, duration, effective_time, flip_angle, amplitude, phase, frequency, bandwidth, N_left, N_right, qval, δ, rise_time, flat_time, slew_rate, gradient_strength, qvec, qval_square, slice_thickness, inverse_slice_thickness, fov, inverse_fov, voxel_size, inverse_voxel_size, resolution, nsamples, oversample, dwell_time, ramp_overlap, spoiler_scale, repetition_time, TR, Δ, get_gradient, get_pulse, get_readout, TE, echo_time -export variables, duration, effective_time, flip_angle, amplitude, phase, frequency, bandwidth, N_left, N_right, qval, δ, rise_time, flat_time, slew_rate, gradient_strength, qvec, qval_square, slice_thickness, inversne_slice_thickness, fov, inverse_fov, voxel_size, inverse_voxel_size, resolution, nsamples, oversample, dwell_time, ramp_overlap, spoiler_scale, repetition_time, TR, Δ, get_gradient, get_pulse, get_readout, TE, echo_time +import .Variables: variables, duration, effective_time, flip_angle, amplitude, phase, frequency, bandwidth, N_left, N_right, qval, δ, rise_time, flat_time, slew_rate, gradient_strength, qvec, qval_square, slice_thickness, inverse_slice_thickness, fov, inverse_fov, voxel_size, inverse_voxel_size, resolution, nsamples, oversample, dwell_time, ramp_overlap, spoiler_scale, repetition_time, TR, Δ, get_gradient, get_pulse, get_readout, TE, echo_time, diffusion_time +export variables, duration, effective_time, flip_angle, amplitude, phase, frequency, bandwidth, N_left, N_right, qval, δ, rise_time, flat_time, slew_rate, gradient_strength, qvec, qval_square, slice_thickness, inversne_slice_thickness, fov, inverse_fov, voxel_size, inverse_voxel_size, resolution, nsamples, oversample, dwell_time, ramp_overlap, spoiler_scale, repetition_time, TR, Δ, get_gradient, get_pulse, get_readout, TE, echo_time, diffusion_time import .Components: InstantPulse, ConstantPulse, SincPulse, GenericPulse, InstantGradient, SingleReadout, ADC export InstantPulse, ConstantPulse, SincPulse, GenericPulse, InstantGradient, SingleReadout, ADC diff --git a/src/variables.jl b/src/variables.jl index ca66f3b..37e600d 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -38,7 +38,8 @@ all_variables_symbols = [ :repetition_time => "Time on which an MRI sequence repeats itself in ms.", :TE => "Echo time of the sequence in ms. Defaults to the result of [`echo_time`](@ref).", :echo_time => "Echo time of the sequence in ms.", - :Δ => "Diffusion time in ms (i.e., time between start of the diffusion-weighted gradients).", + :diffusion_time => "Diffusion time in ms (i.e., time between start of the diffusion-weighted gradients).", + :Δ => "Diffusion time in ms (i.e., time between start of the diffusion-weighted gradients). Defaults to the result of [`diffusion_time`](@ref).", :qvec => "Net dephasing due to gradients in rad/um.", :area_under_curve => "Net dephasing due to gradients in rad/um (same as [`qvec`](@ref)).", :bmat => "Full 3x3 diffusion-weighting matrix in ms/um^2.", @@ -104,6 +105,7 @@ end TE(ab::AbstractBlock) = echo_time(ab) TR(ab::AbstractBlock) = repetition_time(ab) +Δ(ab::AbstractBlock) = diffusion_time(ab) """ Dictionary with alternative versions of specific function. @@ -235,7 +237,7 @@ end for (target_name, all_vars) in all_variables_symbols for (variable_func, _) in all_vars - if variable_func in [:qval3, :TR, :TE] + if variable_func in [:qval3, :TR, :TE, :Δ] continue end get_func = Symbol("get_" * string(target_name)) -- GitLab