@@ -131,11 +131,11 @@ function _check_adc_dwell(dwell, raster, block_id)
131131 error (" Block $block_id ADC dwell ($(dwell) s) is not aligned to raster $(raster) s." )
132132end
133133
134- function _check_adc_timing (adc, raster , block_id)
134+ function _check_adc_timing (adc, adc_raster, rf_raster , block_id)
135135 dwell = adc. N == 1 ? adc. T : adc. T / (adc. N - 1 )
136- _check_adc_dwell (dwell, raster , block_id)
136+ _check_adc_dwell (dwell, adc_raster , block_id)
137137 adc. delay + PULSEQ_TIME_TOL >= dwell / 2 || error (" Block $block_id ADC delay ($(adc. delay) s) is smaller than dwell/2 ($(dwell / 2 ) s)." )
138- _check_raster_multiple (adc. delay - dwell / 2 , raster , block_id, " ADC delay" )
138+ _check_raster_multiple (adc. delay - dwell / 2 , rf_raster , block_id, " ADC delay" )
139139 return nothing
140140end
141141
@@ -169,7 +169,7 @@ function check_timing(seq::Sequence, raster::NamedTuple)
169169 _check_grad_timing (gr, raster. GradientRasterTime, i, name)
170170 end
171171 adc = seq. ADC[i]
172- is_ADC_on (adc) && _check_adc_timing (adc, raster. AdcRasterTime, i)
172+ is_ADC_on (adc) && _check_adc_timing (adc, raster. AdcRasterTime, raster . RadiofrequencyRasterTime, i)
173173 end
174174 return nothing
175175end
0 commit comments