-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PhBaseWorkChain
: fix set_qpoints
step
The `set_qpoints` step in the outline of the `PhBaseWorkChain` contained several errors incorrectly assuming that the inputs of the `PhCalculation` are found in the `self.ctx.inputs.ph` namespace of the context. These should actually be placed in the `self.ctx.inputs`, which is where the `BaseRestartWorkChain` expects to find the inputs of the process class it wraps. Here we correctly assign the inputs in the context. `Additionally, the `set_qpoints` step would assume that the `qpoints_force_parity` input of the PhBaseWorkChain is always present. However, this is not a required input, and hence we take this in consideration in the `set_qpoints` logic.
- Loading branch information
Showing
3 changed files
with
66 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters