Skip to content

Commit 04f6aa5

Browse files
committed
skpkg: codespell src/
1 parent 9d7972e commit 04f6aa5

File tree

8 files changed

+24
-11
lines changed

8 files changed

+24
-11
lines changed

.codespell/ignore_words.txt

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,21 @@
44
;; abbreviation for "materials" often used in a journal title
55
mater
66

7-
;; alternative use of socioeconomic
8-
socio-economic
9-
107
;; Frobenius norm used in np.linalg.norm
118
fro
9+
10+
;; "discus" is the name of a software package
11+
discus
12+
DISCUS
13+
14+
;; chemical elements
15+
Te
16+
Nd
17+
18+
;; /src/diffpy/structure/parsers/p_pdb.py:100
19+
;; pdb identifier
20+
CONECT
21+
22+
;; /src/diffpy/structure/parsers/p_xcfg.py:452
23+
;; used in a function
24+
BU

src/diffpy/structure/expansion/shapeutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def findCenter(S):
3232
"""
3333
best = -1
3434
bestd = len(S)
35-
center = [0.5, 0.5, 0.5] # the cannonical center
35+
center = [0.5, 0.5, 0.5] # the canonical center
3636

3737
for i in range(len(S)):
3838
d = S.lattice.dist(S[i].xyz, center)

src/diffpy/structure/parsers/p_auto.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def parseFile(self, filename):
148148
def _wrapParseMethod(self, method, *args, **kwargs):
149149
"""A helper evaluator method that try the specified parse method
150150
with each registered structure parser and return the first
151-
successful resul.
151+
successful result.
152152
153153
Structure parsers that match structure file extension are
154154
tried first.

src/diffpy/structure/parsers/p_discus.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def _parse_unknown_record(self, words):
272272
Raises
273273
------
274274
StructureFormatError
275-
Unkown record.
275+
Unknown record.
276276
"""
277277
self.ignored_lines.append(self.line)
278278
return

src/diffpy/structure/parsers/p_xcfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def getParser():
424424

425425

426426
def _assign_auxiliaries(a, fields, auxiliaries, no_velocity):
427-
"""Assing auxiliary properties for `Atom` object when reading CFG
427+
"""Assign auxiliary properties for `Atom` object when reading CFG
428428
format.
429429
430430
Parameters

src/diffpy/structure/spacegroupmod.py

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

88
import numpy
99

10-
# 64 unique rotation matricies
10+
# 64 unique rotation matrices
1111
Rot_Z_mY_X = numpy.array([[0.0, 0.0, 1.0], [0.0, -1.0, 0.0], [1.0, 0.0, 0.0]], float)
1212
Rot_Y_mX_mZ = numpy.array([[0.0, 1.0, 0.0], [-1.0, 0.0, 0.0], [0.0, 0.0, -1.0]], float)
1313
Rot_XmY_X_mZ = numpy.array([[1.0, -1.0, 0.0], [1.0, 0.0, 0.0], [0.0, 0.0, -1.0]], float)

src/diffpy/structure/structure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def __getitem__(self, idx):
453453
454454
Parameters
455455
----------
456-
idx : int ot str ot Iterable
456+
idx : int or str or Iterable
457457
`Atom` identifier. When integer use standard list lookup.
458458
For iterables use numpy lookup, this supports integer or
459459
boolean flag arrays. For string or string-containing iterables
@@ -566,7 +566,7 @@ def _fixlat(a):
566566
keep = set(super(Structure, self).__getitem__(idx))
567567
v1 = (a if a in keep else Atom(a) for a in value)
568568
vfinal = filter(_fixlat, v1)
569-
# handle scalar assingment
569+
# handle scalar assignment
570570
else:
571571
vfinal = Atom(value) if copy else value
572572
vfinal.lattice = self.lattice

src/diffpy/structure/symmetryutilities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class _Position2Tuple(object):
147147
Attributes
148148
----------
149149
eps : float
150-
Cutoff for equivalent coordinates. When two coordiantes map to the
150+
Cutoff for equivalent coordinates. When two coordinates map to the
151151
same tuple, they are closer than `eps`.
152152
"""
153153

0 commit comments

Comments
 (0)