From 1d6ef676112e2d5c07e51bee330e07b100dd9b31 Mon Sep 17 00:00:00 2001 From: esoteric-ephemera Date: Thu, 30 May 2024 15:54:21 -0700 Subject: [PATCH] ensure that orig_inputs is not serialized to a Potcar object --- emmet-core/emmet/core/tasks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emmet-core/emmet/core/tasks.py b/emmet-core/emmet/core/tasks.py index 618aefa553..7e6a897958 100644 --- a/emmet-core/emmet/core/tasks.py +++ b/emmet-core/emmet/core/tasks.py @@ -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