Skip to content

Commit

Permalink
fixup! refactor: use clock from SciMLBase, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AayushSabharwal committed Jul 24, 2024
1 parent d0ad0ef commit 465594d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/clock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,4 @@ function Base.showerror(io::IO, cie::ClockInferenceException)
print(io, "ClockInferenceException: ", cie.msg)
end

struct IntegerSequence
t::Union{Nothing, Symbolic}
IntegerSequence(t::Union{Num, Symbolic}) = new(value(t))
end
struct IntegerSequence end
2 changes: 1 addition & 1 deletion test/clock.jl
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ sss, = ModelingToolkit._structural_simplify!(deepcopy(tss[1]), (inputs[1], ()))
@test isempty(equations(sss))
d = Clock(dt)
k = ShiftIndex(d)
@test observed(sss) == [yd(k + 1) ~ Sample(t, dt)(y); r(k + 1) ~ 1.0;
@test observed(sss) == [yd(k + 1) ~ Sample(dt)(y); r(k + 1) ~ 1.0;
ud(k + 1) ~ kp * (r(k + 1) - yd(k + 1))]

d = Clock(dt)
Expand Down

0 comments on commit 465594d

Please sign in to comment.