Skip to content

Commit

Permalink
Merge pull request #527 from JuliaHealth/recon-image-dimensions
Browse files Browse the repository at this point in the history
Limit 'NadcsPerImage' to be at least 1
  • Loading branch information
cncastillo authored Dec 18, 2024
2 parents b113ee8 + 8b68441 commit 4ee83d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion KomaMRICore/src/rawdata/ISMRMRD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ function signal_to_raw_data(
profiles = Profile[]
t_acq = get_adc_sampling_times(seq)
Nadcs = sum(is_ADC_on.(seq))
NadcsPerImage = floor(Int, Nadcs / Nz)
NadcsPerImage = max(floor(Int, Nadcs / Nz), 1)
scan_counter = 0
nz = 0
current = 1
Expand Down

0 comments on commit 4ee83d2

Please sign in to comment.