Skip to content

Commit 0514eae

Browse files
committed
fix: UTs
1 parent 63e7017 commit 0514eae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt/model/atomic_model/linear_atomic_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def serialize(self) -> dict:
333333
@classmethod
334334
def deserialize(cls, data: dict) -> "LinearEnergyAtomicModel":
335335
data = copy.deepcopy(data)
336-
check_version_compatibility(data.get("@version", 2), 2, 1)
336+
check_version_compatibility(data.pop("@version", 2), 2, 1)
337337
data.pop("@class", None)
338338
data.pop("type", None)
339339
models = [

0 commit comments

Comments
 (0)