Skip to content

Commit

Permalink
Add is_hubbard and hubbards to entry.parameters (#824)
Browse files Browse the repository at this point in the history
* Add `is_hubbard` and `hubbards` to entry.parameters

* Linting
  • Loading branch information
mkhorton committed Sep 12, 2023
1 parent 6415b0a commit 1621ef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions emmet-core/emmet/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,8 @@ def get_entry(
"potcar_spec": [dict(d) for d in calcs_reversed[0].input.potcar_spec],
# Required to be compatible with MontyEncoder for the ComputedEntry
"run_type": str(calcs_reversed[0].run_type),
"is_hubbard": calcs_reversed[0].input.is_hubbard,
"hubbards": calcs_reversed[0].input.hubbards,
},
"data": {
"oxide_type": oxide_type(calcs_reversed[0].output.structure),
Expand Down
4 changes: 3 additions & 1 deletion emmet-core/emmet/core/vasp/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,9 @@ def from_vasp_outputs(
magmoms = [m["tot"] for m in outcar.magnetization]
structure.add_site_property("magmom", magmoms)
else:
logger.warning("No OUTCAR/CONTCAR available, some information will be missing from TaskDoc.")
logger.warning(
"No OUTCAR/CONTCAR available, some information will be missing from TaskDoc."
)
outcar_dict = {}
structure = vasprun.final_structure
mag_density = None
Expand Down

0 comments on commit 1621ef0

Please sign in to comment.