We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
value
unwrap
1 parent ec23072 commit e8a0e1eCopy full SHA for e8a0e1e
lib/ModelingToolkitBase/src/discretedomain.jl
@@ -23,7 +23,7 @@ struct Shift <: Operator
23
"""Fixed Shift"""
24
t::Union{Nothing, SymbolicT}
25
steps::Int
26
- Shift(t, steps = 1) = new(value(t), steps)
+ Shift(t, steps = 1) = new(unwrap(t), steps)
27
end
28
Shift(steps::Int) = new(nothing, steps)
29
normalize_to_differential(s::Shift) = Differential(s.t)^s.steps
0 commit comments