Commit 1c0d273
fix(io): read LATTICE_PARAMETER blocks consistently in STRU parsers
Three STRU parsers checked for a LATTICE_PARAMETER block but then read
blocks['LATTICE_PARAMETERS'] with an extra S, and treated the list of
lines as a string. Read blocks['LATTICE_PARAMETER'][0].split() to match
the neighboring LATTICE_CONSTANT idiom, so STRU files using
LATTICE_PARAMETER parse instead of raising KeyError.
Closes #7555
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 12f66ac commit 1c0d273
3 files changed
Lines changed: 3 additions & 3 deletions
File tree
- interfaces
- ASE_interface/abacuslite/io
- Multiwfn_interface
- python/pyabacus/src/pyabacus/io
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
| 844 | + | |
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| |||
0 commit comments