Skip to content

Commit

Permalink
Add show for Dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Aug 13, 2023
1 parent b750780 commit 70cf293
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/show.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,11 @@ function Base.show(io::IO, ::MIME"text/plain", cell::SpglibCell)
end
return nothing
end
function Base.show(io::IO, ::MIME"text/plain", dataset::Dataset)
summary(io, dataset)
println(io)
for name in propertynames(dataset)
println(io, " ", name, ": ", getfield(dataset, name))
end
return nothing
end

0 comments on commit 70cf293

Please sign in to comment.