Skip to content

Commit

Permalink
Fix imports in src/PhononWorkflow/actions.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Oct 15, 2023
1 parent e240c28 commit 22a7247
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/PhononWorkflow/actions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using ExpressBase:
DensityFunctionalPerturbationTheory,
RealSpaceForceConstants,
PhononDispersion,
VDOS
PhononDensityOfStates
using QuantumESPRESSO.PWscf:
PWInput,
CellParametersCard,
Expand All @@ -15,7 +15,6 @@ using QuantumESPRESSO.PWscf:
AtomicPositionsCardSetter,
tryparsefinal
using QuantumESPRESSO.PHonon: PhInput, Q2rInput, MatdynInput, VerbositySetter, relayinfo
using QuantumESPRESSO.Commands: pw, ph, q2r, matdyn
using Setfield: @set!
using UnifiedPseudopotentialFormat # To work with `download_potential`

Expand All @@ -38,7 +37,7 @@ function (::CreateInput{RealSpaceForceConstants})(template::Q2rInput, previnp::P
end
function (::CreateInput{T})(
template::MatdynInput, a::Q2rInput, b::PhInput
) where {T<:Union{PhononDispersion,VDOS}}
) where {T<:Union{PhononDispersion,PhononDensityOfStates}}
return normalizer(T(), (a, b))(template)
end
(action::CreateInput)(template::MatdynInput, a::PhInput, b::Q2rInput) =
Expand Down Expand Up @@ -95,7 +94,9 @@ function normalizer(
)
return RelayArgumentsSetter(inputs) DosSetter(false)
end
function normalizer(::VDOS, inputs::Union{Tuple{Q2rInput,PhInput},Tuple{PhInput,Q2rInput}})
function normalizer(
::PhononDensityOfStates, inputs::Union{Tuple{Q2rInput,PhInput},Tuple{PhInput,Q2rInput}}
)
return RelayArgumentsSetter(inputs) DosSetter(true)
end

Expand Down

0 comments on commit 22a7247

Please sign in to comment.