Skip to content

Commit 44a169e

Browse files
committed
fix docstr
1 parent 3d1071c commit 44a169e

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

deepmd/dpmodel/descriptor/dpa3.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,9 @@ class RepFlowArgs:
127127
Whether to use an exponential switch function instead of a polynomial one in the neighbor update.
128128
The exponential switch function ensures neighbor contributions smoothly diminish as the interatomic distance
129129
`r` approaches the cutoff radius `rcut`. Specifically, the function is defined as:
130-
s(r) = \\exp(-\\exp(C (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
131-
Here, `rcut_smth` is an adjustable smoothing factor,
132-
while `C` is a tunable parameter controlling the decay rate (default: 20).
133-
`rcut_smth` should be chosen carefully according to `rcut`,
134-
ensuring s(r) approaches zero smoothly at the cutoff.
130+
s(r) = \\exp(-\\exp(20 * (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
131+
Here, `rcut_smth` is an adjustable smoothing factor and `rcut_smth` should be chosen carefully
132+
according to `rcut`, ensuring s(r) approaches zero smoothly at the cutoff.
135133
Typical recommended values are `rcut_smth` = 5.3 for `rcut` = 6.0, and 3.5 for `rcut` = 4.0.
136134
"""
137135

deepmd/dpmodel/descriptor/repflows.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,9 @@ class DescrptBlockRepflows(NativeOP, DescriptorBlock):
126126
Whether to use an exponential switch function instead of a polynomial one in the neighbor update.
127127
The exponential switch function ensures neighbor contributions smoothly diminish as the interatomic distance
128128
`r` approaches the cutoff radius `rcut`. Specifically, the function is defined as:
129-
s(r) = \\exp(-\\exp(C (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
130-
Here, `rcut_smth` is an adjustable smoothing factor,
131-
while `C` is a tunable parameter controlling the decay rate (default: 20).
132-
`rcut_smth` should be chosen carefully according to `rcut`,
133-
ensuring s(r) approaches zero smoothly at the cutoff.
129+
s(r) = \\exp(-\\exp(20 * (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
130+
Here, `rcut_smth` is an adjustable smoothing factor and `rcut_smth` should be chosen carefully
131+
according to `rcut`, ensuring s(r) approaches zero smoothly at the cutoff.
134132
Typical recommended values are `rcut_smth` = 5.3 for `rcut` = 6.0, and 3.5 for `rcut` = 4.0.
135133
ntypes : int
136134
Number of element types

deepmd/pt/model/descriptor/repflows.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,9 @@ class DescrptBlockRepflows(DescriptorBlock):
137137
Whether to use an exponential switch function instead of a polynomial one in the neighbor update.
138138
The exponential switch function ensures neighbor contributions smoothly diminish as the interatomic distance
139139
`r` approaches the cutoff radius `rcut`. Specifically, the function is defined as:
140-
s(r) = \\exp(-\\exp(C (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
141-
Here, `rcut_smth` is an adjustable smoothing factor,
142-
while `C` is a tunable parameter controlling the decay rate (default: 20).
143-
`rcut_smth` should be chosen carefully according to `rcut`,
144-
ensuring s(r) approaches zero smoothly at the cutoff.
140+
s(r) = \\exp(-\\exp(20 * (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut.
141+
Here, `rcut_smth` is an adjustable smoothing factor and `rcut_smth` should be chosen carefully
142+
according to `rcut`, ensuring s(r) approaches zero smoothly at the cutoff.
145143
Typical recommended values are `rcut_smth` = 5.3 for `rcut` = 6.0, and 3.5 for `rcut` = 4.0.
146144
optim_update : bool, optional
147145
Whether to enable the optimized update method.

deepmd/utils/argcheck.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,10 +1501,8 @@ def dpa3_repflow_args():
15011501
"Whether to use an exponential switch function instead of a polynomial one in the neighbor update. "
15021502
"The exponential switch function ensures neighbor contributions smoothly diminish as the interatomic distance "
15031503
"`r` approaches the cutoff radius `rcut`. Specifically, the function is defined as: "
1504-
"s(r) = \\exp(-\\exp(C (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut. "
1505-
"Here, `rcut_smth` is an adjustable smoothing factor, "
1506-
"while `C` is a tunable parameter controlling the decay rate (default: 20). "
1507-
"`rcut_smth` should be chosen carefully according to `rcut`, "
1504+
"s(r) = \\exp(-\\exp(20 * (r - rcut_smth) / rcut_smth)) for 0 < r \\leq rcut, and s(r) = 0 for r > rcut. "
1505+
"Here, `rcut_smth` is an adjustable smoothing factor and should be chosen carefully according to `rcut`, "
15081506
"ensuring s(r) approaches zero smoothly at the cutoff. "
15091507
"Typical recommended values are `rcut_smth` = 5.3 for `rcut` = 6.0, and 3.5 for `rcut` = 4.0."
15101508
)

0 commit comments

Comments
 (0)