Skip to content

Commit

Permalink
fix: precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
anyangml committed Mar 8, 2024
1 parent 4f63e95 commit e4086fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deepmd/dpmodel/fitting/polarizability_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ def __getitem__(self, key):
if key in ["constant_matrix"]:
return self.constant_matrix
else:
super().__getitem__(key)

return super().__getitem__(key)
def serialize(self) -> dict:
data = super().serialize()
data["type"] = "polar"
Expand Down
2 changes: 1 addition & 1 deletion deepmd/pt/model/task/polarizability.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def __getitem__(self, key):
if key in ["constant_matrix"]:
return self.constant_matrix
else:
super().__getitem__(key)
return super().__getitem__(key)

def serialize(self) -> dict:
data = super().serialize()
Expand Down

0 comments on commit e4086fb

Please sign in to comment.