Skip to content

Commit 3a0398f

Browse files
Define Base.show for display only
Co-authored-by: Lukas Devos <ldevos98@gmail.com>
1 parent ddab8e7 commit 3a0398f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/states/infiniteweightpeps.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function compare_weights(wts1::SUWeight, wts2::SUWeight)
4949
return sum(_singular_value_distance, zip(wts1.data, wts2.data)) / length(wts1)
5050
end
5151

52-
function Base.show(io::IO, wts::SUWeight)
52+
function Base.show(io::IO, ::MIME"text/plain", wts::SUWeight)
5353
println(io, typeof(wts))
5454
for idx in CartesianIndices(wts.data)
5555
println(io, Tuple(idx), ":")

0 commit comments

Comments
 (0)