Skip to content

Commit

Permalink
fixing the workchain used in the steps, there was a bug in pp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miki Bonacci committed Feb 13, 2024
1 parent c24a624 commit b82aa83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions aiida_yambo_wannier90/workflows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ def should_run_wannier90_pp(self) -> bool:
def prepare_wannier90_pp_inputs(self) -> AttributeDict:
"""Prepare inputs for wannier90_pp, only for generating nnkp file."""
inputs = AttributeDict(
self.exposed_inputs(Wannier90OptimizeWorkChain, namespace="wannier90")
self.exposed_inputs(Wannier90BaseWorkChain, namespace="wannier90_pp")
)["wannier90"]

inputs.wannier90.structure = self.ctx.current_structure
Expand Down Expand Up @@ -1174,8 +1174,8 @@ def prepare_wannier90_inputs(self) -> AttributeDict:
self.exposed_inputs(Wannier90OptimizeWorkChain, namespace="wannier90")
)

inputs.wannier90.structure = self.ctx.current_structure
inputs.wannier90.kpoint_path = self.ctx.current_kpoint_path
inputs.structure = self.ctx.current_structure
inputs.kpoint_path = self.ctx.current_kpoint_path

# Use commensurate kmesh
if self.ctx.kpoints_w90_input != self.ctx.kpoints_w90:
Expand Down

0 comments on commit b82aa83

Please sign in to comment.