Skip to content

Commit

Permalink
cleanup and reading
Browse files Browse the repository at this point in the history
  • Loading branch information
louisponet committed Jul 7, 2019
1 parent 349e10a commit e5f39e7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/API.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export Structure, Atom, Pseudo, DFTU
#Units exported
export Ang, e₀, kₑ, a₀, Eₕ, Ry
export Vec3, Point3, Mat3

include("inputAPI.jl")
export DFInput
Expand Down
7 changes: 4 additions & 3 deletions src/display/overloads.jl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ show(io::IO, data::Vector{InputData}) = map(x-> show(io, x), data)
function show(io::IO, band::DFBand{T}) where T <: AbstractFloat
df_show_type(io, band)
string = """
k_points of length $(length(band.k_points_cryst)):
k_points of length $(length(band.k_points_cart)):
cart: $(band.k_points_cart[1]) -> $(band.k_points_cart[end])
cryst: $(band.k_points_cryst[1]) -> $(band.k_points_cryst[end])
eigvals: $(band.eigvals[1]) -> $(band.eigvals[end])
"""
!isempty(band.k_points_cryst) && (string *= "cryst: $(band.k_points_cryst[1]) -> $(band.k_points_cryst[end])\n")
string *= """eigvals: $(band.eigvals[1]) -> $(band.eigvals[end])
extra: $(band.extra)
"""
dfprintln(io, string)
Expand Down
2 changes: 1 addition & 1 deletion src/qe/fileio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function qe_read_output(input::DFInput{QE}, args...; kwargs...)
push!(out[:yticks], ticks)
end
else
out[:pdos] = NamedTuple{(:energies, :values), Tuple{Vector{Float64}, Vector{Float64}}}[]
out[:pdos] = NamedTuple{(:energies, :values), Tuple{Vector{Float64}, Matrix{Float64}}}[]
for f in pdos_files
energs, vals = qe_read_pdos(joinpath(dir(input), f), args...; kwargs...)
push!(out[:pdos], (energies=energs, values=vals))
Expand Down

0 comments on commit e5f39e7

Please sign in to comment.