Commit 2648d50
fix: qe input blocks not seperated by empty lines (#724)
the qe support only parse input file, in which cell blocks are separated
by empty lines, like
```
ATOMIC_SPECIES
Na 22.989769 Na_ONCV_PBE-1.0.upf
CELL_PARAMETERS {angstrom}
7.171683039200000 0.000000000000000 0.000000000000000
```
however, the input file is valid when no empty line exists, like the
following
```
ATOMIC_SPECIES
Na 22.989769 Na_ONCV_PBE-1.0.upf
CELL_PARAMETERS {angstrom}
7.171683039200000 0.000000000000000 0.000000000000000
```
This pr fixes the issue
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
## Summary by CodeRabbit
- **New Features**
- Improved handling of Quantum Espresso output data for better parsing
and clarity.
- Enhanced error handling for missing force and stress data.
- Added configuration parameters for self-consistent field (SCF)
calculations for sodium.
- **Bug Fixes**
- Updated functions to prevent unwanted lines in data extraction,
ensuring cleaner output.
- **Tests**
- Introduced a new test class to validate the functionality of the
`dpdata.LabeledSystem` class with Quantum Espresso output, enhancing
test coverage.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>1 parent a2fbdd8 commit 2648d50
4 files changed
Lines changed: 450 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
14 | 28 | | |
15 | 29 | | |
16 | 30 | | |
17 | 31 | | |
18 | 32 | | |
19 | 33 | | |
20 | | - | |
| 34 | + | |
21 | 35 | | |
22 | | - | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
23 | 40 | | |
24 | 41 | | |
25 | 42 | | |
| |||
123 | 140 | | |
124 | 141 | | |
125 | 142 | | |
126 | | - | |
| 143 | + | |
127 | 144 | | |
128 | 145 | | |
129 | 146 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
0 commit comments