Skip to content

Commit

Permalink
Limit 'NadcsPerImage' to be at least 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Stockless committed Dec 18, 2024
1 parent b113ee8 commit 8b68441
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 8b68441

Please sign in to comment.