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

Fix sequence start time calculation

parent 47b0a137
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ function start_time(bs::BaseSequence{N}, index::Integer) where {N}
throw(BoundsError(bs, index))
end
base_index = ((index - 1) % N) + 1
base_time = sum(i -> duration(bs[i]), 1:base_index)
base_time = sum(i -> duration(bs[i]), 1:base_index-1; init=0.)
if iszero(nTR)
return base_time
else
......
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