diff --git a/src/containers/linearise.jl b/src/containers/linearise.jl index 20600ec5658c2dccd31f64c437ed8342ee7a3088..85cd9286d89d206322652fa3b98d2fd742bcdf09 100644 --- a/src/containers/linearise.jl +++ b/src/containers/linearise.jl @@ -14,6 +14,7 @@ end Base.iszero(lp::LinearPart) = iszero(lp.start_value) && iszero(lp.end_value) Base.iszero(lp::LinearPart{<:AbstractVector}) = all(iszero.(lp.start_value)) && all(iszero.(lp.end_value)) +(lp::LinearPart)(time::Float64) = @. (1 - time) * lp.start_value + time * lp.end_value """ SequencePart(sequence, time1, time2)