Skip to content

Commit

Permalink
Fix show
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 7, 2023
1 parent 9eaef6a commit 56ec240
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ function Base.show(io::IO, ::MIME"text/plain", lattice::Lattice)
println(io)
join(
io,
' ' * join(basisvector, " ") * '\n' for basisvector in basisvectors(lattice.data)
' ' * join(basisvector, " ") * '\n' for basisvector in basisvectors(lattice)
)
return nothing
end
function Base.show(io::IO, ::MIME"text/plain", cell::Cell)
summary(io, cell)
println(io)
println(io, " lattice:")
for basisvector in basisvectors(cell.lattice)
for basisvector in basisvectors(Lattice(cell))
println(io, " ", join(basisvector, " "))
end
num_atom = natoms(cell)
Expand Down

0 comments on commit 56ec240

Please sign in to comment.