Skip to content

Commit b168032

Browse files
committed
remove show
1 parent 65682e5 commit b168032

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/systems/callbacks.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Base.show(io::IO, x::Pre) = print(io, "Pre")
116116
input_timedomain(::Pre, _ = nothing) = ContinuousClock()
117117
output_timedomain(::Pre, _ = nothing) = ContinuousClock()
118118
unPre(x::Num) = unPre(unwrap(x))
119-
unPre(x::BasicSymbolic) = operation(x) isa Pre ? only(arguments(x)) : x
119+
unPre(x::BasicSymbolic) = (iscall(x) && operation(x) isa Pre) ? only(arguments(x)) : x
120120

121121
function (p::Pre)(x)
122122
iw = Symbolics.iswrapped(x)

src/systems/index_cache.jl

-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ function IndexCache(sys::AbstractSystem)
127127
end
128128

129129
for sym in discs
130-
@show sym
131130
is_parameter(sys, sym) ||
132131
error("Expected discrete variable $sym in callback to be a parameter")
133132

0 commit comments

Comments
 (0)