Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 16, 2024
1 parent 88e41e5 commit c94608a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 27 deletions.
9 changes: 0 additions & 9 deletions deepmd/pt/model/task/dos.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import copy
import logging
from typing import (
Callable,
List,
Optional,
Union,
)

import numpy as np
import torch

from deepmd.dpmodel import (
Expand All @@ -30,13 +28,6 @@
from deepmd.pt.utils.utils import (
to_numpy_array,
)
from deepmd.utils.out_stat import (
compute_stats_from_atomic,
compute_stats_from_redu,
)
from deepmd.utils.path import (
DPPath,
)
from deepmd.utils.version import (
check_version_compatibility,
)
Expand Down
8 changes: 0 additions & 8 deletions deepmd/pt/model/task/invar_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
import copy
import logging
from typing import (
Callable,
List,
Optional,
Union,
)

import torch
Expand All @@ -24,12 +22,6 @@
from deepmd.pt.utils.env import (
DEFAULT_PRECISION,
)
from deepmd.pt.utils.stat import (
compute_output_stats,
)
from deepmd.utils.path import (
DPPath,
)
from deepmd.utils.version import (
check_version_compatibility,
)
Expand Down
10 changes: 0 additions & 10 deletions deepmd/pt/model/task/polarizability.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@
import copy
import logging
from typing import (
Callable,
List,
Optional,
Union,
)

import numpy as np
import torch

from deepmd.dpmodel import (
Expand All @@ -27,13 +25,6 @@
from deepmd.pt.utils.utils import (
to_numpy_array,
)
from deepmd.utils.out_stat import (
compute_stats_from_atomic,
compute_stats_from_redu,
)
from deepmd.utils.path import (
DPPath,
)
from deepmd.utils.version import (
check_version_compatibility,
)
Expand Down Expand Up @@ -194,7 +185,6 @@ def output_def(self) -> FittingOutputDef:
]
)


def forward(
self,
descriptor: torch.Tensor,
Expand Down
1 change: 1 addition & 0 deletions source/tests/pt/model/test_polar_stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
PolarFittingSeA,
)


@unittest.skip
class TestConsistency(unittest.TestCase):
def setUp(self) -> None:
Expand Down

0 comments on commit c94608a

Please sign in to comment.