Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmshn committed Apr 22, 2024
1 parent 6a0a79e commit aaebc19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymatgen/analysis/defects/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,11 +1096,11 @@ def get_interp_en(entry: ComputedEntry) -> float:
"""Get the interpolated energy of an entry."""
e_dict = {}
for e in atomic_entries:
if len(e.composition.elements) != 1:
if len(e.composition.elements) != 1: # pragma: no cover
msg = "Only single-element entries should be provided."
raise ValueError(
msg,
) # pragma: no cover
)
e_dict[e.composition.elements[0]] = e.energy_per_atom

return sum(
Expand Down

0 comments on commit aaebc19

Please sign in to comment.