We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ddadf0 commit ef6adeeCopy full SHA for ef6adee
1 file changed
src/frontend/specification/Sem.jl
@@ -612,11 +612,14 @@ _subtype_info(::Sem) = ""
612
_subtype_info(::SemFiniteDiff) = " : Finite Difference Approximation"
613
614
function Base.show(io::IO, sem::AbstractSem)
615
+ # if not specified, use compact printing for larger models
616
+ if !haskey(io, :compact) && length(loss_terms(sem)) >= 5
617
+ io = IOContext(io, :compact => true)
618
+ end
619
print(io, "Structural Equation Model")
620
print(io, _subtype_info(sem))
621
print("\n")
622
print(io, "- Loss Functions \n")
- io = length(loss_terms(sem)) >= 5 ? IOContext(io, :compact => true) : io
623
for term in loss_terms(sem)
624
print(io, " > ")
625
print(io, term)
0 commit comments