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

Fix computing of qvec for last part of gradient waveform

parent a9767277
No related branches found
No related tags found
No related merge requests found
...@@ -169,6 +169,7 @@ function waveform_sequence(bb::BaseBuildingBlock, first, last) ...@@ -169,6 +169,7 @@ function waveform_sequence(bb::BaseBuildingBlock, first, last)
if !isnothing(last) if !isnothing(last)
error("Final index of $last not recognised.") error("Final index of $last not recognised.")
end end
push!(parts, (current_grad_key, isnothing(current_start) ? bb[current_grad_key] : split_gradient(bb[current_grad_key], current_start)[2]))
return parts return parts
end end
......
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