-
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.
PwBaseWorkChain
: do no assume output_band
exists in band sanity c…
…heck (#544) The `output_band` output of the `PwCalculation` is optional and, for example, when the setting `no_bands=True`, the band files will not be retrieved and consequentially not parsed. The process handler checking the bands `sanity_check_insufficient_bands`, however, assumed the output node is always there. This is changed to simply skip the check if the node is not there. Note that we do not check in the workchain whether the output should have been there, because the sanity check is only triggered for successful calculations, and if the output should have been there, the calculation should have been failed. If this is not the case, that is a bug in the parser and should be addressed there.
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 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