Skip to content

Commit

Permalink
Deprecate NamedTuple from PWOutputParameter
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 27, 2023
1 parent c57138c commit 2156234
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PWscf/output.jl
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,3 @@ function parsefinal(::Type{T}, str::AbstractString) where {T<:AtomicStructure}
m === nothing && throw(Meta.ParseError("No `CELL_PARAMETERS` found!"))
return tryparse_internal(T, m.match)
end # function parsefinal

Base.NamedTuple(obj::PWOutputParameter) =
NamedTuple(name => getfield(obj, name) for name in fieldnames(obj))

0 comments on commit 2156234

Please sign in to comment.