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

Fix type of qval output

parent e8bfd4fa
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ slew_rate(g::PulsedGradient) = isnothing(g.scaling) ? maximum(slew_rate_vec(g))
δ(g::PulsedGradient) = rise_time(g) + flat_time(g)
duration(g::PulsedGradient) = 2 * rise_time(g) + flat_time(g)
qvec(g::PulsedGradient) = δ(g) .* gradient_strength_vec(g)
qval(g::PulsedGradient) = δ(g) .* gradient_strength(g)
qval(g::PulsedGradient) = δ(g) * gradient_strength(g)
get_children_indices(::PulsedGradient) = (:rise, :flat, :fall)
Base.getindex(pg::PulsedGradient, symbol::Symbol) = pg[Val(symbol)]
......
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