From c933e61ee5f5087dab9ec018f5d0756c26f3b4f3 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Fri, 26 Jan 2024 15:23:49 +0000
Subject: [PATCH] Fix timings of PulsedGradient conversion

---
 src/gradients/pulsed_gradients.jl | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/gradients/pulsed_gradients.jl b/src/gradients/pulsed_gradients.jl
index 0c4bc43..0073cca 100644
--- a/src/gradients/pulsed_gradients.jl
+++ b/src/gradients/pulsed_gradients.jl
@@ -129,14 +129,13 @@ function to_concrete_block(s::AbstractSequence, block::PulsedGradient)
     else
         error("Gradient orientation should be :bvec, :neg_bvec or a length-3 vector, not $(block.orienation)")
     end
-    t_start = value(start_time(block))
     t_rise = value(rise_time(block))
     t_d = value(δ(block))
-    return ConcreteBlock(s, t_start + t_d + t_rise, gradient=[
-        (t_start, zeros(3)),
-        (t_start + t_rise, qvec),
-        (t_start + t_d, qvec),
-        (t_start + t_d + t_rise, zeros(3)),
+    return ConcreteBlock(s, t_d + t_rise, gradient=[
+        (0., zeros(3)),
+        (t_rise, qvec),
+        (t_d, qvec),
+        (t_d + t_rise, zeros(3)),
     ], rotate_gradient=rotate)
 end
 
-- 
GitLab