Skip to content

Commit 8940dac

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c040df3 commit 8940dac

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

deepmd/dpmodel/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_standard_model(data: dict) -> EnergyModel:
5555
**data["fitting_net"],
5656
)
5757
else:
58-
raise ValueError(f"Unknown fitting type {fitting_type}") #fix
58+
raise ValueError(f"Unknown fitting type {fitting_type}") # fix
5959
return EnergyModel(
6060
descriptor=descriptor,
6161
fitting=fitting,

source/tests/consistent/model/test_dos.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from ..common import (
1616
INSTALLED_PT,
1717
INSTALLED_TF,
18-
SKIP_FLAG,
1918
CommonTest,
2019
)
2120
from .common import (
@@ -46,7 +45,7 @@ def data(self) -> dict:
4645
"sel": [20, 20],
4746
"rcut_smth": 1.8,
4847
"rcut": 6.0,
49-
"neuron": [2,4,8],
48+
"neuron": [2, 4, 8],
5049
"resnet_dt": False,
5150
"axis_neuron": 8,
5251
"precision": "float64",
@@ -55,7 +54,7 @@ def data(self) -> dict:
5554
"fitting_net": {
5655
"type": "dos",
5756
"numb_dos": 250,
58-
"neuron": [4,4,4],
57+
"neuron": [4, 4, 4],
5958
"resnet_dt": True,
6059
"numb_fparam": 0,
6160
"precision": "float64",

0 commit comments

Comments
 (0)