Skip to content

Commit

Permalink
Add show for ReciprocalLattice
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 30, 2023
1 parent 65f2fbf commit 80b735b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ function Base.show(io::IO, ::MIME"text/plain", lattice::Lattice)
join(io, ' ' * join(row, " ") * '\n' for row in eachrow(parent(lattice)))
return nothing
end
function Base.show(io::IO, ::MIME"text/plain", lattice::ReciprocalLattice)
summary(io, lattice)
println(io)
join(io, ' ' * join(row, " ") * '\n' for row in eachrow(parent(lattice)))
return nothing
end
function Base.show(io::IO, ::MIME"text/plain", cell::Cell)
summary(io, cell)
println(io)
Expand Down

0 comments on commit 80b735b

Please sign in to comment.