Commit 8263565
fix: raise runtime error when the vasp long ions per type bug is triggered (#861)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Improved error handling to detect and alert users when there is a
mismatch between atom counts and types in VASP OUTCAR files, preventing
silent data inconsistencies.
* **Refactor**
* Enhanced file handling for frame extraction to ensure files are
properly closed and code is more maintainable.
* **Tests**
* Added a new test to verify correct error reporting for OUTCAR files
with more than 10 atom types.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Co-authored-by: Han Wang <wang_han@iapcm.ac.cn>1 parent c129cc3 commit 8263565
3 files changed
Lines changed: 7473 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| |||
131 | 138 | | |
132 | 139 | | |
133 | 140 | | |
134 | | - | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
135 | 153 | | |
136 | 154 | | |
137 | 155 | | |
| |||
187 | 205 | | |
188 | 206 | | |
189 | 207 | | |
190 | | - | |
191 | 208 | | |
192 | 209 | | |
193 | 210 | | |
| |||
0 commit comments