-
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.
✨ Add semicore support for PseudoDojo v0.5 PBE
Generate the JSON files indicating the semicore orbitals for PseudoDojo v0.5 PBE, including the `standard` and `stringent` protocols. To show the efficacy of the script used to generate the JSON files, the JSONs containing the semicores for PseudoDojo v0.4 LDA/PBE standard have also been regenerated. Additionally, the "stringent" versions of the PseudoDojo v0.4 PBE/LDA versions are also generated. To test that all pseudo potentials are truly supported, a sanity test is added which checks that the `get_pseudo_orbitals()` function can find all pseudos for the supported families.
- Loading branch information
Showing
6 changed files
with
3,715 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""Test that the data provided for the pseudopotentials is complete and correct.""" | ||
|
||
from aiida import load_profile, orm | ||
|
||
from aiida_wannier90_workflows.utils.pseudo import get_pseudo_orbitals | ||
|
||
load_profile() | ||
|
||
|
||
for family in ( | ||
"PseudoDojo/0.4/LDA/SR/standard/upf", | ||
"PseudoDojo/0.4/LDA/SR/stringent/upf", | ||
"PseudoDojo/0.4/PBE/SR/standard/upf", | ||
"PseudoDojo/0.4/PBE/SR/stringent/upf", | ||
"PseudoDojo/0.5/PBE/SR/standard/upf", | ||
"PseudoDojo/0.5/PBE/SR/stringent/upf", | ||
"PseudoDojo/0.5/PBE/SR/stringent/upf", | ||
): | ||
print(f"Testing family {family}") | ||
for el, pseudo in orm.load_group(family).pseudos.items(): | ||
try: | ||
get_pseudo_orbitals({el: pseudo}) | ||
except ValueError as exc: | ||
print(exc) |
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
Oops, something went wrong.