Skip to content

Commit 9b70487

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 030143e commit 9b70487

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

deepmd/common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,6 @@ def rglob_sys_str(root_dir: str, patterns: list[str]) -> list[str]:
231231
return list(set(matches)) # remove duplicates
232232

233233

234-
235234
def get_np_precision(precision: "_PRECISION") -> np.dtype:
236235
"""Get numpy precision constant from string.
237236

deepmd/utils/argcheck.py

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,7 +2913,11 @@ def training_data_args(): # ! added by Ziyao: new specification style for data
29132913
"systems", [list[str], str], optional=False, default=".", doc=doc_systems
29142914
),
29152915
Argument(
2916-
"rglob_patterns", [list[str]], optional=True, default=None, doc=doc_patterns + doc_only_pt_supported
2916+
"rglob_patterns",
2917+
[list[str]],
2918+
optional=True,
2919+
default=None,
2920+
doc=doc_patterns + doc_only_pt_supported,
29172921
),
29182922
Argument(
29192923
"batch_size",
@@ -2984,8 +2988,12 @@ def validation_data_args(): # ! added by Ziyao: new specification style for dat
29842988
Argument(
29852989
"systems", [list[str], str], optional=False, default=".", doc=doc_systems
29862990
),
2987-
Argument(
2988-
"rglob_patterns", [list[str]], optional=True, default=None, doc=doc_patterns + doc_only_pt_supported
2991+
Argument(
2992+
"rglob_patterns",
2993+
[list[str]],
2994+
optional=True,
2995+
default=None,
2996+
doc=doc_patterns + doc_only_pt_supported,
29892997
),
29902998
Argument(
29912999
"batch_size",

0 commit comments

Comments
 (0)