Skip to content

Commit c0b6d8c

Browse files
Merge pull request #3039 from SciML/incidence_matrix
Remove incidence matrix from system show
2 parents 2b90f68 + 9564ff3 commit c0b6d8c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/systems/abstractsystem.jl

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,17 +1859,16 @@ function Base.show(io::IO, mime::MIME"text/plain", sys::AbstractSystem)
18591859
end
18601860
end
18611861
limited && print(io, "\n")
1862+
return nothing
1863+
end
18621864

1865+
function Graphs.incidence_matrix(sys)
18631866
if has_torn_matching(sys) && has_tearing_state(sys)
1864-
# If the system can take a torn matching, then we can initialize a tearing
1865-
# state on it. Do so and get show the structure.
18661867
state = get_tearing_state(sys)
1867-
if state !== nothing
1868-
Base.printstyled(io, "\nIncidence matrix:"; color = :magenta)
1869-
show(io, mime, incidence_matrix(state.structure.graph, Num(Sym{Real}(:×))))
1870-
end
1868+
incidence_matrix(state.structure.graph, Num(Sym{Real}(:×)))
1869+
else
1870+
return nothing
18711871
end
1872-
return nothing
18731872
end
18741873

18751874
function split_assign(expr)

0 commit comments

Comments
 (0)