Skip to content

Commit

Permalink
fix: fix the default value of std (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Sep 20, 2024
1 parent d14af46 commit a2df67f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ Below is default values for the MACE model, most of which follows default values
"MLP_irreps": "16x0e",
"radial_type": "bessel",
"radial_MLP": [64, 64, 64],
"std": null,
"std": 1.0,
"precision": "float32"
}
```
Expand Down
2 changes: 1 addition & 1 deletion deepmd_mace/argcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def mace_model_args() -> Argument:
default=[64, 64, 64],
doc=doc_radial_mlp,
),
Argument("std", float, optional=True, doc=doc_std),
Argument("std", float, optional=True, doc=doc_std, default=1),
Argument(
"precision",
str,
Expand Down
2 changes: 1 addition & 1 deletion deepmd_mace/mace.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def __init__(
MLP_irreps: str = "16x0e",
radial_type: str = "bessel",
radial_MLP: list[int] = [64, 64, 64], # noqa: B006
std: Optional[float] = 1,
std: float = 1,
**kwargs: Any, # noqa: ANN401
) -> None:
super().__init__(**kwargs)
Expand Down

0 comments on commit a2df67f

Please sign in to comment.