Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nahso committed Sep 25, 2023
1 parent 885816b commit dce0618
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions deepmd/descriptor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@
from .se_a_ebd import (
DescrptSeAEbd,
)
from .se_a_ebd_v2 import (
DescrptSeAEbdV2,
)
from .se_a_ef import (
DescrptSeAEf,
DescrptSeAEfLower,
)
from .se_a_mask import (
DescrptSeAMask,
)
from .se_a_ebd_v2 import (
DescrptSeAEbdV2,
)
from .se_atten import (
DescrptSeAtten,
)
Expand Down
4 changes: 1 addition & 3 deletions deepmd/descriptor/se_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,9 +744,7 @@ def _pass_filter(
else:
type_embedding = None
if self.stripped_type_embedding and type_embedding is None:
raise RuntimeError(
"type_embedding is required for se_a_tebd_v2 model."
)
raise RuntimeError("type_embedding is required for se_a_tebd_v2 model.")

Check warning on line 747 in deepmd/descriptor/se_a.py

View check run for this annotation

Codecov / codecov/patch

deepmd/descriptor/se_a.py#L747

Added line #L747 was not covered by tests
start_index = 0
inputs = tf.reshape(inputs, [-1, natoms[0], self.ndescrpt])
output = []
Expand Down

0 comments on commit dce0618

Please sign in to comment.