Skip to content

Commit 8f546cf

Browse files
njzjzwanghan-iapcm
andauthored
docs: fix word spellings (#4264)
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Co-authored-by: Han Wang <92130845+wanghan-iapcm@users.noreply.github.com>
1 parent 04e1159 commit 8f546cf

File tree

196 files changed

+448
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+448
-442
lines changed

backend/read_env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def get_argument_from_env() -> tuple[str, list, list, dict, str, str]:
4343
"""
4444
cmake_args = []
4545
extra_scripts = {}
46-
# get variant option from the environment varibles, available: cpu, cuda, rocm
46+
# get variant option from the environment variables, available: cpu, cuda, rocm
4747
dp_variant = os.environ.get("DP_VARIANT", "cpu").lower()
4848
if dp_variant == "cpu" or dp_variant == "":
4949
cmake_minimum_required_version = "3.16"

deepmd/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818

1919
def DeepPotential(*args, **kwargs):
20-
"""Factory function that forwards to DeepEval (for compatbility
20+
"""Factory function that forwards to DeepEval (for compatibility
2121
and performance).
2222
2323
Parameters

deepmd/backend/suffix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def format_model_suffix(
2323
"""Check and format the suffixes of a filename.
2424
2525
When preferred_backend is not given, this method checks the suffix of the filename
26-
is within the suffixes of the any backends (with the given feature) and doesn't do formating.
26+
is within the suffixes of the any backends (with the given feature) and doesn't do formatting.
2727
When preferred_backend is given, strict_prefer must be given.
2828
If strict_prefer is True and the suffix is not within the suffixes of the preferred backend,
2929
or strict_prefer is False and the suffix is not within the suffixes of the any backend with the given feature,

deepmd/calculator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
class DP(Calculator):
3333
"""Implementation of ASE deepmd calculator.
3434
35-
Implemented propertie are `energy`, `forces` and `stress`
35+
Implemented properties are `energy`, `forces` and `stress`
3636
3737
Parameters
3838
----------

deepmd/common.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def select_idx_map(atom_types: np.ndarray, select_types: np.ndarray) -> np.ndarr
7777
Parameters
7878
----------
7979
atom_types : np.ndarray
80-
array specifing type for each atoms as integer
80+
array specifying type for each atoms as integer
8181
select_types : np.ndarray
8282
types of atoms you want to find indices for
8383
@@ -126,7 +126,7 @@ def make_default_mesh(pbc: bool, mixed_type: bool) -> np.ndarray:
126126
def j_deprecated(
127127
jdata: dict[str, "_DICT_VAL"], key: str, deprecated_key: list[str] = []
128128
) -> "_DICT_VAL":
129-
"""Assert that supplied dictionary conaines specified key.
129+
"""Assert that supplied dictionary contains specified key.
130130
131131
Parameters
132132
----------
@@ -218,7 +218,7 @@ def get_np_precision(precision: "_PRECISION") -> np.dtype:
218218
Returns
219219
-------
220220
np.dtype
221-
numpy presicion constant
221+
numpy precision constant
222222
223223
Raises
224224
------

deepmd/dpmodel/atomic_model/base_atomic_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def forward_common_atomic(
158158
Parameters
159159
----------
160160
extended_coord
161-
extended coodinates, shape: nf x (nall x 3)
161+
extended coordinates, shape: nf x (nall x 3)
162162
extended_atype
163163
extended atom typs, shape: nf x nall
164164
for a type < 0 indicating the atomic is virtual.

deepmd/dpmodel/atomic_model/dp_atomic_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def forward_atomic(
100100
Parameters
101101
----------
102102
extended_coord
103-
coodinates in extended region
103+
coordinates in extended region
104104
extended_atype
105105
atomic type in extended region
106106
nlist
@@ -169,7 +169,7 @@ def serialize(self) -> dict:
169169
)
170170
return dd
171171

172-
# for subclass overriden
172+
# for subclass overridden
173173
base_descriptor_cls = BaseDescriptor
174174
"""The base descriptor class."""
175175
base_fitting_cls = BaseFitting

deepmd/dpmodel/atomic_model/linear_atomic_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def forward_atomic(
162162
Parameters
163163
----------
164164
extended_coord
165-
coodinates in extended region, (nframes, nall * 3)
165+
coordinates in extended region, (nframes, nall * 3)
166166
extended_atype
167167
atomic type in extended region, (nframes, nall)
168168
nlist
@@ -341,7 +341,7 @@ class DPZBLLinearEnergyAtomicModel(LinearEnergyAtomicModel):
341341
Mapping atom type to the name (str) of the type.
342342
For example `type_map[1]` gives the name of the type 1.
343343
smin_alpha
344-
The short-range tabulated interaction will be swithed according to the distance of the nearest neighbor.
344+
The short-range tabulated interaction will be switched according to the distance of the nearest neighbor.
345345
This distance is calculated by softmin.
346346
"""
347347

deepmd/dpmodel/atomic_model/make_base_atomic_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def make_atom_mask(
152152
self,
153153
atype: t_tensor,
154154
) -> t_tensor:
155-
"""The atoms with type < 0 are treated as virutal atoms,
155+
"""The atoms with type < 0 are treated as virtual atoms,
156156
which serves as place-holders for multi-frame calculations
157157
with different number of atoms in different frames.
158158
@@ -164,7 +164,7 @@ def make_atom_mask(
164164
Returns
165165
-------
166166
mask
167-
True for real atoms and False for virutal atoms.
167+
True for real atoms and False for virtual atoms.
168168
169169
"""
170170
# supposed to be supported by all backends

deepmd/dpmodel/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"int64": np.int64,
3131
"bool": bool,
3232
"default": GLOBAL_NP_FLOAT_PRECISION,
33-
# NumPy doesn't have bfloat16 (and does't plan to add)
33+
# NumPy doesn't have bfloat16 (and doesn't plan to add)
3434
# ml_dtypes is a solution, but it seems not supporting np.save/np.load
3535
# hdf5 hasn't supported bfloat16 as well (see https://forum.hdfgroup.org/t/11975)
3636
"bfloat16": ml_dtypes.bfloat16,

0 commit comments

Comments
 (0)