From 6ddc00078f108a6413e7bb85d36517c9ec7c0251 Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Thu, 1 Feb 2024 14:12:55 +0000
Subject: [PATCH] Set all slice_thickness dimensions

---
 src/helper_functions.jl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/helper_functions.jl b/src/helper_functions.jl
index 89cd7c0..eb68cbd 100644
--- a/src/helper_functions.jl
+++ b/src/helper_functions.jl
@@ -46,7 +46,8 @@ function excitation_pulse(; flip_angle=90, phase=0., frequency=0., shape=:sinc,
     if isinf(min_slice_thickness)
         return pulse
     end
-    grad = TrapezoidGradient(pulse=pulse, rise_time=:min, slice_thickness=min_slice_thickness, orientation=[0, 0, 1.], rotate=rotate_grad)
+
+    grad = TrapezoidGradient(pulse=pulse, rise_time=:min, slice_thickness=[Inf, Inf, min_slice_thickness], orientation=[0, 0, 1.], rotate=rotate_grad)
     if !rephase
         return grad
     end
-- 
GitLab