Skip to content

Commit

Permalink
Update dft.py
Browse files Browse the repository at this point in the history
Signed-off-by: Zishen Wang <[email protected]>
  • Loading branch information
zz11ss11zz authored Sep 22, 2024
1 parent 546bf2d commit df87393
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/maml/apps/bowsr/model/dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ def predict_energy(self, structure: Structure):
compat = MaterialsProjectCompatibility()
vrun = Vasprun("vasprun.xml")
entry = compat.process_entry(vrun.get_computed_entry())
return (entry.energy - sum(elements[el]["energy_per_atom"] * amt for el, amt in el_amt_dict.items())) / len(
return (entry.energy - sum(elements[el]["energy_per_atom"] * amt for el, amt in el_amt_dict.items())) / len( # type: ignore
structure
) # type: ignore
)

0 comments on commit df87393

Please sign in to comment.