-
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.
🐛
ProjwfcParser
: Fix DOS parsing for spin-polarised case
Currently, the `ProjwfcParser` does not correctly parse the total DOS data in the case of spin-polarised calculations. Only the first column is parsed, which corresponds to spin-up density only. This issue passed the tests unnoticed since the regression tests only check the attributes of the `Dos` output, not the actual content. Here we adapt the `ProjwfcParser` to treat the spin-polarised case `nspin = 2` case correctly, constructing an `XyData` node that has two `y` arrays, one for each spin. The tests for the spin-polarised case are also adapted to add the `XyData` contents to the regression files.
- Loading branch information
Showing
3 changed files
with
192 additions
and
23 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
178 changes: 168 additions & 10 deletions
178
tests/parsers/test_projwfc/test_projwfc_spinpolarised.yml
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