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

Fix timings of PulsedGradient conversion

parent 0f963389
No related branches found
No related tags found
No related merge requests found
...@@ -129,14 +129,13 @@ function to_concrete_block(s::AbstractSequence, block::PulsedGradient) ...@@ -129,14 +129,13 @@ function to_concrete_block(s::AbstractSequence, block::PulsedGradient)
else else
error("Gradient orientation should be :bvec, :neg_bvec or a length-3 vector, not $(block.orienation)") error("Gradient orientation should be :bvec, :neg_bvec or a length-3 vector, not $(block.orienation)")
end end
t_start = value(start_time(block))
t_rise = value(rise_time(block)) t_rise = value(rise_time(block))
t_d = value(δ(block)) t_d = value(δ(block))
return ConcreteBlock(s, t_start + t_d + t_rise, gradient=[ return ConcreteBlock(s, t_d + t_rise, gradient=[
(t_start, zeros(3)), (0., zeros(3)),
(t_start + t_rise, qvec), (t_rise, qvec),
(t_start + t_d, qvec), (t_d, qvec),
(t_start + t_d + t_rise, zeros(3)), (t_d + t_rise, zeros(3)),
], rotate_gradient=rotate) ], rotate_gradient=rotate)
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