From ee2824a35c5504e737103219ac8a79882a03f3f5 Mon Sep 17 00:00:00 2001 From: Carlos Castillo Passi Date: Mon, 8 Apr 2024 18:19:30 -0400 Subject: [PATCH] Added recon param guessing for Nz in read_seq --- KomaMRIFiles/src/Sequence/Pulseq.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KomaMRIFiles/src/Sequence/Pulseq.jl b/KomaMRIFiles/src/Sequence/Pulseq.jl index a620de84c..2f7eb7db2 100644 --- a/KomaMRIFiles/src/Sequence/Pulseq.jl +++ b/KomaMRIFiles/src/Sequence/Pulseq.jl @@ -469,8 +469,8 @@ function read_seq(filename) seq.DEF["signature"] = signature # Guessing recon dimensions seq.DEF["Nx"] = get(seq.DEF, "Nx", maximum(adc.N for adc = seq.ADC)) - seq.DEF["Ny"] = get(seq.DEF, "Ny", sum(map(is_ADC_on, seq))) - seq.DEF["Nz"] = get(seq.DEF, "Ny", 1) + seq.DEF["Nz"] = get(seq.DEF, "Ny", length(unique(seq.RF.Δf))) + seq.DEF["Ny"] = get(seq.DEF, "Ny", sum(map(is_ADC_on, seq)) ÷ seq.DEF["Nz"]) #Koma sequence return seq end