Skip to content

Commit

Permalink
ensure that orig_inputs is not serialized to a Potcar object
Browse files Browse the repository at this point in the history
  • Loading branch information
esoteric-ephemera authored and tsmathis committed May 31, 2024
1 parent 54d20a0 commit 1d6ef67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions emmet-core/emmet/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ def potcar_ok(cls, v):

@field_validator("potcar", mode="after")
@classmethod
def _prune_potcar(cls, v):
""" Check that potcar attr is not a pymatgen POTCAR. """
def parse_potcar(cls, v):
""" Check that potcar attribute is not a pymatgen POTCAR. """
if isinstance(v, VaspPotcar):
# The user should not mix potential types, but account for that here
# Using multiple potential types will be caught in validation
Expand Down

0 comments on commit 1d6ef67

Please sign in to comment.