Commit 38a3197
authored
Rename annotation keys (#141)
* Rename annotation keys
* Fix h5md schema
* Update src/nomad_simulation_parsers/schema_packages/quantumespresso/common.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update src/nomad_simulation_parsers/schema_packages/quantumespresso/common.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Close abinit parsers
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1. Annotation Key Namespacing (30 files)
- Generic keys like 'out', 'xml', 'dos' are now prefixed with parser names
- Examples:
- 'out' → 'quantumespresso_out' (Quantum ESPRESSO)
- 'xml' → 'vasp_xml' (VASP)
- 'gpw' → 'gpaw_gpw' (GPAW)
- 'out' → 'abinit_out' (ABINIT)
2. Schema Reload Removal
- Removes all reload(schema_module) calls from parsers
- Previously, parsers were reloading schema packages to refresh annotations at runtime
- This suggests annotations are now properly registered at import time
3. Annotation Cleanup Removal
- Removes calls to remove_mapping_annotations()
- No longer needs to clean up annotations after parsing
4. Resource Management Improvements
- Adds missing close() calls for parsers (GPAW, Octopus, FHI-aims)
- Ensures proper cleanup of file contexts
5. Quantum ESPRESSO Refactoring (src/nomad_simulation_parsers/schema_packages/quantumespresso/common.py)
- Introduces shared OUT_KEY = 'quantumespresso_out' constant
- Refactors from manual m_annotations manipulation to using add_mapping_annotation() helper1 parent 3193ea3 commit 38a3197
File tree
30 files changed
+149
-228
lines changed- src/nomad_simulation_parsers
- parsers
- abinit
- ams
- crystal
- exciting
- fhiaims
- gpaw
- gromacs
- h5md
- octopus
- quantumespresso
- epw
- phonon
- pwscf
- xspectra
- vasp
- wannier90
- schema_packages
- quantumespresso
30 files changed
+149
-228
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
623 | 622 | | |
624 | 623 | | |
625 | 624 | | |
626 | | - | |
627 | | - | |
628 | 625 | | |
629 | 626 | | |
630 | 627 | | |
| |||
662 | 659 | | |
663 | 660 | | |
664 | 661 | | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
665 | 666 | | |
666 | 667 | | |
667 | 668 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
78 | 77 | | |
79 | 78 | | |
80 | 79 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 80 | | |
85 | 81 | | |
86 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
207 | 206 | | |
208 | 207 | | |
209 | 208 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 209 | | |
214 | 210 | | |
215 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | | - | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
| |||
185 | 183 | | |
186 | 184 | | |
187 | 185 | | |
188 | | - | |
189 | | - | |
190 | 186 | | |
191 | 187 | | |
192 | 188 | | |
| |||
248 | 244 | | |
249 | 245 | | |
250 | 246 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | 247 | | |
255 | 248 | | |
256 | 249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
44 | | - | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
446 | 444 | | |
447 | 445 | | |
448 | 446 | | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | 447 | | |
453 | 448 | | |
454 | 449 | | |
| |||
545 | 540 | | |
546 | 541 | | |
547 | 542 | | |
548 | | - | |
549 | | - | |
550 | | - | |
551 | | - | |
552 | | - | |
553 | | - | |
554 | | - | |
| 543 | + | |
| 544 | + | |
555 | 545 | | |
556 | 546 | | |
557 | 547 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | 92 | | |
97 | 93 | | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
103 | 102 | | |
104 | 103 | | |
105 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
467 | 466 | | |
468 | 467 | | |
469 | 468 | | |
470 | | - | |
471 | | - | |
472 | 469 | | |
473 | 470 | | |
474 | 471 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
16 | 15 | | |
17 | 16 | | |
18 | 17 | | |
19 | | - | |
20 | 18 | | |
21 | 19 | | |
22 | 20 | | |
| |||
492 | 490 | | |
493 | 491 | | |
494 | 492 | | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | 493 | | |
499 | 494 | | |
500 | 495 | | |
| |||
528 | 523 | | |
529 | 524 | | |
530 | 525 | | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | 526 | | |
535 | 527 | | |
536 | 528 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
417 | 416 | | |
418 | 417 | | |
419 | 418 | | |
420 | | - | |
421 | | - | |
422 | | - | |
423 | 419 | | |
424 | 420 | | |
425 | 421 | | |
| |||
449 | 445 | | |
450 | 446 | | |
451 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
0 commit comments