Skip to content

Commit

Permalink
Fix typos in docstring
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz and coderabbitai[bot] authored Oct 26, 2024
1 parent 2256c6b commit 40ad218
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions deepmd/jax/infer/deep_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@


class DeepEval(DeepEvalBackend):
"""NumPy backend implementaion of DeepEval.
"""NumPy backend implementation of DeepEval.
Parameters
----------
Expand Down Expand Up @@ -132,7 +132,7 @@ def get_dim_aparam(self) -> int:

@property
def model_type(self) -> type["DeepEvalWrapper"]:
"""The the evaluator of the model type."""
"""The evaluator of the model type."""
model_output_type = self.dp.model_output_type()
if "energy" in model_output_type:
return DeepPot
Expand Down Expand Up @@ -389,5 +389,5 @@ def _get_output_shape(self, odef, nframes, natoms):
raise RuntimeError("unknown category")

Check warning on line 389 in deepmd/jax/infer/deep_eval.py

View check run for this annotation

Codecov / codecov/patch

deepmd/jax/infer/deep_eval.py#L389

Added line #L389 was not covered by tests

def get_model_def_script(self) -> dict:
"""Get model defination script."""
"""Get model definition script."""
return json.loads(self.model.get_model_def_script())

Check warning on line 393 in deepmd/jax/infer/deep_eval.py

View check run for this annotation

Codecov / codecov/patch

deepmd/jax/infer/deep_eval.py#L393

Added line #L393 was not covered by tests

0 comments on commit 40ad218

Please sign in to comment.