Skip to content
Snippets Groups Projects
Verified Commit d0933f0b authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix oversample value (should be 1 not 0)

parent ae822491
No related branches found
No related tags found
No related merge requests found
...@@ -245,7 +245,7 @@ function build_sequence(; scanner=nothing, B0=3., TR=nothing, definitions, versi ...@@ -245,7 +245,7 @@ function build_sequence(; scanner=nothing, B0=3., TR=nothing, definitions, versi
end end
if !iszero(block.adc) if !iszero(block.adc)
proc = adc[block.adc] proc = adc[block.adc]
push!(events, (proc.delay, ADC(proc.num, proc.dwell * 1e-6, proc.dwell * proc.num * 1e-6 / 2, 0.))) push!(events, (proc.delay, ADC(proc.num, proc.dwell * 1e-6, proc.dwell * proc.num * 1e-6 / 2, 1.)))
block_duration = max(proc.delay * 1e-3 + proc.dwell * proc.num * 1e-6, block_duration) block_duration = max(proc.delay * 1e-3 + proc.dwell * proc.num * 1e-6, block_duration)
end end
grad_shapes = [] grad_shapes = []
...@@ -299,6 +299,7 @@ function build_sequence(; scanner=nothing, B0=3., TR=nothing, definitions, versi ...@@ -299,6 +299,7 @@ function build_sequence(; scanner=nothing, B0=3., TR=nothing, definitions, versi
push!(amplitudes, 0.) push!(amplitudes, 0.)
end end
end end
@show events
extend_grad!.(grad_shapes) extend_grad!.(grad_shapes)
arrs = align_in_time(grad_shapes...) arrs = align_in_time(grad_shapes...)
waveform = [(t, SVector{3, Float64}(gx, gy, gz)) for (t, gx, gy, gz) in zip(arrs...)] waveform = [(t, SVector{3, Float64}(gx, gy, gz)) for (t, gx, gy, gz) in zip(arrs...)]
......
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