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 Mar 15, 2024
1 parent 1fa3e18 commit 33e30ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 3 additions & 4 deletions deepmd/pt/model/task/ener.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
Fitting,
GeneralFitting,
)
from deepmd.pt.model.task.invar_fitting import (

Check warning on line 25 in deepmd/pt/model/task/ener.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/task/ener.py#L25

Added line #L25 was not covered by tests
InvarFitting,
)
from deepmd.pt.utils import (
env,
)
from deepmd.pt.utils.env import (
DEFAULT_PRECISION,
)
from deepmd.pt.model.task.invar_fitting import(
InvarFitting
)
from deepmd.utils.version import (
check_version_compatibility,
)
Expand All @@ -41,7 +41,6 @@
log = logging.getLogger(__name__)



@Fitting.register("ener")
class EnergyFittingNet(InvarFitting):
def __init__(
Expand Down
3 changes: 0 additions & 3 deletions deepmd/pt/model/task/invar_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@
Callable,
List,
Optional,
Tuple,
Union,
)

import numpy as np
import torch

Check warning on line 11 in deepmd/pt/model/task/invar_fitting.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/task/invar_fitting.py#L11

Added line #L11 was not covered by tests

from deepmd.dpmodel import (

Check warning on line 13 in deepmd/pt/model/task/invar_fitting.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/task/invar_fitting.py#L13

Added line #L13 was not covered by tests
FittingOutputDef,
OutputVariableDef,
fitting_check_output,
)

from deepmd.pt.model.task.fitting import (

Check warning on line 18 in deepmd/pt/model/task/invar_fitting.py

View check run for this annotation

Codecov / codecov/patch

deepmd/pt/model/task/invar_fitting.py#L18

Added line #L18 was not covered by tests
GeneralFitting,
)
Expand Down

0 comments on commit 33e30ca

Please sign in to comment.