Skip to content
Snippets Groups Projects
Unverified Commit 9bd061b6 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix duration calculation for ADC

Each sample takes `dwell_time` to collect
parent 0fd4dfc4
No related branches found
No related tags found
1 merge request!1Add writing to Pulseq files
......@@ -52,7 +52,7 @@ readout_times(adc::ADC) = ((1:Int(nsamples(adc))) .- 0.5) .* dwell_time(adc)
oversample(adc::ADC) = adc.oversample
nsamples(adc::ADC) = resolution(adc) * oversample(adc)
dwell_time(adc::ADC) = adc.dwell_time
duration(adc::ADC) = (nsamples(adc)-1) * dwell_time(adc)
duration(adc::ADC) = nsamples(adc) * dwell_time(adc)
time_to_center(adc::ADC) = adc.time_to_center
effective_time(adc::ADC) = time_to_center(adc)
resolution(adc::ADC) = adc.resolution
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment