Skip to content

Commit 65ccb7c

Browse files
committed
readme.md add links to source and example code for each plot function
- add Key attrs `initial_struct`, `form_energy`, `formation_energy`, and `formation_energy_per_atom` in `enums.py`
1 parent c228b74 commit 65ccb7c

File tree

3 files changed

+102
-85
lines changed

3 files changed

+102
-85
lines changed

pymatviz/enums.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def __reduce_ex__(self, proto: object) -> tuple[type, tuple[str]]:
248248
n_sites = "n_sites"
249249
structure = "structure"
250250
init_struct = "init_struct"
251+
initial_struct = "initial_struct"
251252
final_struct = "final_struct"
252253
cell = "cell"
253254
lattice = "lattice"
@@ -375,10 +376,12 @@ def __reduce_ex__(self, proto: object) -> tuple[type, tuple[str]]:
375376
e_form_per_atom = "e_form_per_atom"
376377
e_form_pred = "e_form_pred"
377378
e_form_true = "e_form_true"
379+
form_energy = "form_energy"
380+
formation_energy = "formation_energy"
381+
formation_energy_per_atom = "formation_energy_per_atom"
378382
each = "each"
379383
each_pred = "each_pred"
380384
each_true = "each_true"
381-
form_energy = "form_energy"
382385
computed_structure_entry = "computed_structure_entry"
383386
melting_point = "melting_point"
384387
boiling_point = "boiling_point"

pymatviz/keys.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ structural:
77
label: Structure
88
init_struct:
99
label: Initial Structure
10+
description: Initial (unrelaxed) structure of the material
11+
initial_struct:
12+
label: Initial Structure
13+
description: Initial (unrelaxed) structure of the material
1014
final_struct:
1115
label: Final Structure
16+
description: Final (relaxed) structure of the material
1217
cell:
1318
label: Cell
1419
lattice:
@@ -318,6 +323,16 @@ thermodynamic:
318323
label: Formation Energy
319324
symbol: E<sub>form</sub>/N<sub>atoms</sub>
320325
unit: eV/atom
326+
formation_energy:
327+
label: Formation Energy
328+
symbol: E<sub>form</sub>/N<sub>atoms</sub>
329+
unit: eV/atom
330+
description: Formation energy per atom relative to constituent element reference states
331+
formation_energy_per_atom:
332+
label: Formation Energy
333+
symbol: E<sub>form</sub>/N<sub>atoms</sub>
334+
unit: eV/atom
335+
description: Formation energy per atom relative to constituent element reference states
321336
computed_structure_entry:
322337
label: Computed Structure Entry
323338
symbol: CSE

0 commit comments

Comments
 (0)