Skip to content

Commit

Permalink
fixing seekpath trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Miki Bonacci committed Feb 19, 2024
1 parent e9b27b6 commit 7cd9489
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions aiida_yambo_wannier90/workflows/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ def run_seekpath(self):

self.ctx.current_structure = result["primitive_structure"]

self.current_explicit_kpoints = result["explicit_kpoints"]

# Add `kpoint_path` for Wannier bands
self.ctx.current_kpoint_path = get_path_from_kpoints(
result["explicit_kpoints"]
Expand Down Expand Up @@ -1182,8 +1184,10 @@ def prepare_wannier90_inputs(self) -> AttributeDict:
)

inputs.structure = self.ctx.current_structure
if self.ctx.current_kpoint_path:
inputs.wannier90.wannier90.kpoint_path = self.ctx.current_kpoint_path
if "bands_kpoints" in self.inputs:
inputs.wannier90.kpoint_path = self.inputs["bands_kpoints"]
elif self.ctx.current_kpoint_path:
inputs.wannier90.kpoint_path = self.ctx.current_explicit_kpoints

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

0 comments on commit 7cd9489

Please sign in to comment.