Skip to content

Commit

Permalink
Fix support for parent protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
t-reents authored and qiaojunfeng committed Sep 26, 2024
1 parent a929450 commit 0778644
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/aiida_wannier90_workflows/workflows/projwfcbands.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,17 @@ def get_builder_from_protocol( # pylint: disable=arguments-differ
# Prepare workchain builder
builder = cls.get_builder()

projwfc_overrides = None
if overrides:
projwfc_overrides = overrides.pop("projwfc", None)
protocol_inputs = cls.get_protocol_inputs(
protocol=protocol, overrides=overrides
)

projwfc_overrides = protocol_inputs.pop("projwfc", None)

pwbands_builder = PwBandsWorkChain.get_builder_from_protocol(
code=pw_code,
structure=structure,
protocol=protocol,
overrides=overrides,
overrides=protocol_inputs,
**kwargs,
)

Expand Down

0 comments on commit 0778644

Please sign in to comment.