Skip to content

Commit

Permalink
PwParser: Add the XML schema for Quantum ESPRESSO v7.3.1
Browse files Browse the repository at this point in the history
In the new schema, the `number_of_atomic_wfc` is moved to the `atomic_structure` tag as
an attribute. In case the former is not present, we extract the value from the latter.
  • Loading branch information
mbercx authored Sep 27, 2024
1 parent ea76d9b commit 57e7463
Show file tree
Hide file tree
Showing 6 changed files with 3,853 additions and 10 deletions.
4 changes: 3 additions & 1 deletion src/aiida_quantumespresso/parsers/parse_xml/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ def parse_xml_post_6_2(xml):

num_k_points = band_structure['nks']
num_electrons = band_structure['nelec']
num_atomic_wfc = band_structure['num_of_atomic_wfc']

# In schema v240411 (QE v7.3.1), the `number_of_atomic_wfc` is moved to the `atomic_structure` tag as an attribute
num_atomic_wfc = band_structure.get('num_of_atomic_wfc', None) or outputs['atomic_structure']['@num_of_atomic_wfc']
num_bands = band_structure.get('nbnd', None)
num_bands_up = band_structure.get('nbnd_up', None)
num_bands_down = band_structure.get('nbnd_dw', None)
Expand Down
Loading

0 comments on commit 57e7463

Please sign in to comment.