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

Add block start_time

parent cf8a5d07
No related branches found
No related tags found
No related merge requests found
...@@ -82,8 +82,10 @@ Continuous gradient waveforms or RF pulses might be split up further to ensure t ...@@ -82,8 +82,10 @@ Continuous gradient waveforms or RF pulses might be split up further to ensure t
""" """
function split_times(sequence::BaseSequence; precision=0.01) function split_times(sequence::BaseSequence; precision=0.01)
splits = Float64[] splits = Float64[]
start_time = 0.
for block in sequence for block in sequence
append!(splits, split_times(block; precision=precision)) append!(splits, start_time .+ split_times(block; precision=precision))
start_time += duration(block)
end end
return sort(unique(splits)) return sort(unique(splits))
end end
......
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