From 8b6844130898999a337e65110dacf2321a5097c6 Mon Sep 17 00:00:00 2001 From: Stockless Date: Wed, 18 Dec 2024 11:51:31 -0300 Subject: [PATCH] Limit 'NadcsPerImage' to be at least 1 --- KomaMRICore/src/rawdata/ISMRMRD.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KomaMRICore/src/rawdata/ISMRMRD.jl b/KomaMRICore/src/rawdata/ISMRMRD.jl index 1ee1ae048..369fd05fe 100644 --- a/KomaMRICore/src/rawdata/ISMRMRD.jl +++ b/KomaMRICore/src/rawdata/ISMRMRD.jl @@ -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