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

Add final timepoint to waveform function

parent 7cd8d060
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,9 @@ function waveform(ao::AbstractOverlapping)
error("Unrecognised block type in gradient waveform: $(typeof(ao)).")
end
end
if duration(ao) > result[end][1]
push!(result, (duration(ao), zero(SVector{3, Float64})))
end
return result
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