Skip to content

Commit 11d48fa

Browse files
committed
fix typos
1 parent 1232393 commit 11d48fa

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ extend-ignore-re = [
139139
"(?Rm)^.*(#|//)\\s*spellchecker:\\s*disable-line$"
140140
]
141141

142+
[tool.typos.default.extend-words]
143+
# short for multi-indices
144+
mis = "mis"
145+
142146
[tool.mypy]
143147
python_version = "3.8"
144148
warn_unused_ignores = true

pytential/symbolic/elasticity.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class ElasticityWrapperBase(ABC):
9898
mu: ExpressionT
9999
r"""Expression or value for the shear modulus :math:`\mu`."""
100100
nu: ExpressionT
101-
r"""Expression or value for Poisson's ration :math:`\nu`."""
101+
r"""Expression or value for Poisson's ratio :math:`\nu`."""
102102

103103
@abstractmethod
104104
def apply(self, density_vec_sym, qbx_forced_limit, extra_deriv_dirs=()):
@@ -118,7 +118,7 @@ def apply(self, density_vec_sym, qbx_forced_limit, extra_deriv_dirs=()):
118118
def apply_derivative(self, deriv_dir, density_vec_sym, qbx_forced_limit):
119119
"""Symbolic derivative of the elasticity single-layer kernel.
120120
121-
This constrcts an object array of symbolic expressions for the vector
121+
This constructs an object array of symbolic expressions for the vector
122122
resulting from integrating the *deriv_dir* target derivative of the
123123
dyadic elasticity kernel with the density *density_vec_sym*.
124124
@@ -186,7 +186,7 @@ def apply_derivative(self, deriv_dir, density_vec_sym, dir_vec_sym,
186186
qbx_forced_limit):
187187
"""Symbolic derivative of the elasticity double-layer potential.
188188
189-
This contructs an object array of symbolic expressions for the vector
189+
This constructs an object array of symbolic expressions for the vector
190190
resulting from integrating the *deriv_dir* target derivative of the
191191
triadic elasticity kernel with variable *density_vec_sym* and the
192192
source direction *dir_vec_sym*.

pytential/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def sort_arrays_together(*arys, key=None):
4040

4141

4242
def chop(expr: sym.Basic, tol) -> sym.Basic:
43-
"""Given a symbolic expression, remove all occurences of numbers
43+
"""Given a symbolic expression, remove all occurrences of numbers
4444
with absolute value less than a given tolerance and replace floating
4545
point numbers that are close to an integer up to a given relative
4646
tolerance by the integer.

0 commit comments

Comments
 (0)