From d77c0cbcb4eb7b3737f0304de13f5c3b5978c36d Mon Sep 17 00:00:00 2001
From: Michiel Cottaar <michiel.cottaar@ndcn.ox.ac.uk>
Date: Fri, 2 Feb 2024 10:40:44 +0000
Subject: [PATCH] Use flags in `InstantRFPulseBlock` constructor

---
 src/pulses/instant_pulses.jl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/pulses/instant_pulses.jl b/src/pulses/instant_pulses.jl
index 7234ce0..4dafb7d 100644
--- a/src/pulses/instant_pulses.jl
+++ b/src/pulses/instant_pulses.jl
@@ -11,7 +11,7 @@ struct InstantRFPulseBlock <: RFPulseBlock
     scale :: Union{Nothing, Symbol}
 end
 
-function InstantRFPulseBlock(flip_angle=nothing, phase=nothing, scale=nothing) 
+function InstantRFPulseBlock(; flip_angle=nothing, phase=nothing, scale=nothing) 
     res = InstantRFPulseBlock(
         get_free_variable(flip_angle),
         get_free_variable(phase),
-- 
GitLab