-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
♻️ Refactor
Wannier90WorkChain.get_builder_from_protocol()
Main changes include: 1. Start by gathering all the `inputs` from the various overrides. This means moving the overrides related to the input arguments (e.g. `plot_wannier_functions`) higher up, just before we start constructing the builder. 2. Make sure the user-specified overrides, provided by the `overrides` input argument, always take precedence. 3. Avoid using the `recursive_merge_builder` method by keeping the inputs in `dict` format. Conversion to node types should happen at the end in the `get_builder_from_protocol()` methods of the wrapped processes. 4. Remove double passing of the `pseudo_family` to the `get_builder_from_protocol()` call of the `Wannier90BaseWorkChain` through _both_ the `meta_parameters` in the `overrides` _and_ the `pseudo_family` input argument. We favour the latter. 5. Fix wrongfully passing the inputs (and hence overrides) of the `projwfc` namespace to the `pw2wannier90` namespace overrides.
- Loading branch information
Showing
2 changed files
with
72 additions
and
67 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