@@ -169,6 +169,40 @@ function Base.show(io::IO, ::MIME"text/plain", mpo::AbstractMPO)
169169 return nothing
170170end
171171
172+ function Base. showarg (io:: IO , envs:: FiniteEnvironments , toplevel:: Bool )
173+ print (io, " environments(state, " )
174+ Base. showarg (io, envs. operator, false )
175+ if isnothing (envs. above)
176+ print (io, " )" )
177+ else
178+ print (io, " , " )
179+ Base. showarg (io, envs. above, false )
180+ print (io, " )" )
181+ end
182+ return nothing
183+ end
184+
185+ function Base. summary (io:: IO , envs:: Union{FiniteEnvironments, InfiniteEnvironments} )
186+ print (io, length (envs. GLs), " -site " )
187+ Base. showarg (io, envs, true )
188+ return nothing
189+ end
190+
191+ function Base. show (io:: IO , :: MIME"text/plain" , envs:: Union{InfiniteEnvironments, FiniteEnvironments} )
192+ Base. summary (io, envs)
193+ get (io, :compact , false ):: Bool && return nothing
194+ println (io, " :" )
195+
196+ for (i, gl) in enumerate (envs. GLs)
197+ println (io, " GL[$i ]: " , space (gl))
198+ end
199+ for (i, gr) in enumerate (envs. GRs)
200+ println (io, " GR[$i ]: " , space (gr))
201+ end
202+
203+ return nothing
204+ end
205+
172206# braille
173207# -------
174208"""
0 commit comments