Skip to content

Commit

Permalink
Update deepmd/dpmodel/descriptor/hybrid.py
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: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
  • Loading branch information
wanghan-iapcm and coderabbitai[bot] committed May 9, 2024
1 parent 6a54a1c commit e08cda3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions deepmd/dpmodel/descriptor/hybrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ def get_env_protection(self) -> float:
same_as_0 = [math.isclose(ii, all_protection[0]) for ii in all_protection]
if not all(same_as_0):
raise ValueError(
"Hybrid descriptor requires the environment matrix protection being the same ",
"for all the descriptors.",
"Hybrid descriptor requires the same environment matrix protection for all descriptors. Found differing values."
)
return all_protection[0]

Expand Down

0 comments on commit e08cda3

Please sign in to comment.