Skip to content

Commit

Permalink
also add get_dim_fparam and get_dim_aparam
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Jan 24, 2024
1 parent bbd6170 commit af6b05e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deepmd_utils/infer/deep_pot.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,13 @@ def get_ntypes(self) -> int:
def get_type_map(self) -> List[str]:
"""Get the type map (element name of the atom types) of this model."""

@abstractmethod
def get_dim_fparam(self) -> int:
"""Get the number (dimension) of frame parameters of this DP."""

@abstractmethod
def get_dim_aparam(self) -> int:
"""Get the number (dimension) of atomic parameters of this DP."""


__all__ = ["DeepPot"]

0 comments on commit af6b05e

Please sign in to comment.