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

Default value of TR/repetition_time is the duration of the sequence

parent 17e6745f
No related branches found
No related tags found
1 merge request!4Resolve "Add secondary objective function"
Pipeline #24966 canceled
......@@ -168,6 +168,8 @@ get_index_single_TR(s::Sequence, i::Integer) = s.blocks[i][2]
Base.getindex(seq::Sequence, sym::Symbol) = seq[findfirst(p -> p[1] == sym, seq.blocks)]
nrepeat(::Sequence) = 0
@defvar repetition_time(seq::Sequence) = duration(seq)
to_block_pair(pair::Pair) = pair[1] => to_block(pair[2])
to_block_pair(other) = nothing => to_block(other)
......
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