Skip to content

Commit f2c4d7f

Browse files
committed
Reformat show methods
1 parent 5db31f3 commit f2c4d7f

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

src/mesharrays/dense.jl

+2-4
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,8 @@ end
204204
# end
205205

206206
function Base.show(io::IO, obj::MeshArray)
207-
print(io, "Meshed array with dims = $(obj.dims) and total length = $(length(obj.data))\n"
208-
*
209-
"- Mesh: $(typeof(obj.mesh)) \n"
210-
)
207+
print(io, "Meshed array with dims = $(obj.dims) and total length = $(length(obj.data))\n",
208+
"- Mesh: $(typeof(obj.mesh)) \n")
211209
end
212210

213211
Base.show(io::IO, ::MIME"text/plain", obj::MeshArray) = Base.show(io, obj)

src/meshgrids/dlrfreq.jl

+9-1
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,12 @@ end
7878
7979
Write a text representation of the DLR grid `tg` to the output stream `io`.
8080
"""
81-
Base.show(io::IO, tg::DLRFreq) = print(io, "DLR frequency grid with $(length(tg)) points, inverse temperature = $(tg.β), UV Energy scale = $(tg.Euv), rtol = $(tg.rtol), sym = $(tg.symmetry), fermionic = $(tg.isFermi): $(_grid(tg.grid))")
81+
Base.show(io::IO, tg::DLRFreq) = print(
82+
io,
83+
"DLR frequency grid with ",
84+
length(tg), " points, inverse temperature = ", tg.β,
85+
", UV Energy scale = ", tg.Euv,
86+
", rtol = ", tg.rtol,
87+
", sym = ", tg.symmetry,
88+
", fermionic = ", tg.isFermi, ": ", _grid(tg.grid)
89+
)

0 commit comments

Comments
 (0)