Skip to content

Commit bfd996d

Browse files
authored
Add show method without MIME type for ODESystem
1 parent a44250b commit bfd996d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/systems/diffeqs/odesystem.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -739,6 +739,8 @@ function add_accumulations(sys::ODESystem, vars::Vector{<:Pair})
739739
@set! sys.defaults = merge(get_defaults(sys), Dict(a => 0.0 for a in avars))
740740
end
741741

742+
Base.show(io::IO, sys::ODESystem; kws...) = show(io, MIME"text/plain"(), sys; kws...)
743+
742744
function Base.show(io::IO, mime::MIME"text/plain", sys::ODESystem; hint = true, bold = true)
743745
# Print general AbstractSystem information
744746
invoke(Base.show, Tuple{typeof(io), typeof(mime), AbstractSystem},

0 commit comments

Comments
 (0)