From 2afd1fb2b104376c64f8beb51bb906b656f4ed39 Mon Sep 17 00:00:00 2001 From: beorostica <36004160+beorostica@users.noreply.github.com> Date: Thu, 11 Apr 2024 15:30:10 -0400 Subject: [PATCH] Update KomaMRIFiles/src/Sequence/WritePulseq.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- KomaMRIFiles/src/Sequence/WritePulseq.jl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/KomaMRIFiles/src/Sequence/WritePulseq.jl b/KomaMRIFiles/src/Sequence/WritePulseq.jl index 07fd7f042..fa157b4b6 100644 --- a/KomaMRIFiles/src/Sequence/WritePulseq.jl +++ b/KomaMRIFiles/src/Sequence/WritePulseq.jl @@ -224,8 +224,9 @@ function write_seq(seq::Sequence, filename) end if isa(obj.T, Vector{<:Number}) shape_tim = cumsum([0; obj.T]) / seq.DEF["GradientRasterTime"] - for (shape_tim_unique, id_tim) ∈ gradunique_tim_id - if length(shape_tim) == length(shape_tim_unique) && shape_tim ≈ shape_tim_unique + for (shape_tim_unique, id_tim) in gradunique_tim_id + if length(shape_tim) == length(shape_tim_unique) && + shape_tim ≈ shape_tim_unique ioamtd[5] = id_tim end end