From 98f87dbc97cb5ec2046f681fa503758833dc8a1a Mon Sep 17 00:00:00 2001 From: beorostica <36004160+beorostica@users.noreply.github.com> Date: Thu, 11 Apr 2024 15:31:44 -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 | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/KomaMRIFiles/src/Sequence/WritePulseq.jl b/KomaMRIFiles/src/Sequence/WritePulseq.jl index c9c5ef8be..645607761 100644 --- a/KomaMRIFiles/src/Sequence/WritePulseq.jl +++ b/KomaMRIFiles/src/Sequence/WritePulseq.jl @@ -204,8 +204,15 @@ function write_seq(seq::Sequence, filename) end end end - delay_compensation_rf_koma = (ioamptdfh[6] == 0) * seq.DEF["RadiofrequencyRasterTime"] / 2 - ioamptdfh[7] = round((obj.delay - delay_compensation_rf_koma) / seq.DEF["RadiofrequencyRasterTime"]) * seq.DEF["RadiofrequencyRasterTime"] * 1e6 + delay_compensation_rf_koma = + (ioamptdfh[6] == 0) * seq.DEF["RadiofrequencyRasterTime"] / 2 + ioamptdfh[7] = + round( + (obj.delay - delay_compensation_rf_koma) / + seq.DEF["RadiofrequencyRasterTime"], + ) * + seq.DEF["RadiofrequencyRasterTime"] * + 1e6 end # Define the table to be written for the [GRADIENTS] section