Skip to content

Commit

Permalink
using input parameters from PwBandsWorkChain nbands_factor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndresOrtegaGuerrero committed Dec 3, 2024
1 parent bb9ede4 commit 1e06782
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aiidalab_qe/plugins/pdos/workchain.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from aiidalab_qe.plugins.utils import set_component_resources

PdosWorkChain = WorkflowFactory("quantumespresso.pdos")
PwBandsWorkChain = WorkflowFactory("quantumespresso.pw.bands")


def check_codes(pw_code, dos_code, projwfc_code):
Expand Down Expand Up @@ -88,7 +89,9 @@ def get_builder(codes, structure, parameters, **kwargs):
**kwargs,
)
# include nbands_factor (Same as in BandsWorkChain)
pdos["nbands_factor"] = orm.Float(3.0)
pdos["nbands_factor"] = orm.Float(
PwBandsWorkChain.get_protocol_inputs()["nbands_factor"]
)
# pop the inputs that are exclueded from the expose_inputs
pdos.pop("structure", None)
pdos.pop("clean_workdir", None)
Expand Down

0 comments on commit 1e06782

Please sign in to comment.