Skip to content

Commit

Permalink
Added recon param guessing for Nz in read_seq
Browse files Browse the repository at this point in the history
  • Loading branch information
cncastillo committed Apr 8, 2024
1 parent c51ef94 commit ee2824a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions KomaMRIFiles/src/Sequence/Pulseq.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ee2824a

Please sign in to comment.