Skip to content

Commit f1c37df

Browse files
committed
Fix spelling suggested by codespell
1 parent e163696 commit f1c37df

27 files changed

+58
-49
lines changed

.codespell/ignore_words.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,12 @@ socio-economic
99

1010
;; Frobenius norm used in np.linalg.norm
1111
fro
12+
13+
;; abbreviation for "structure"
14+
struc
15+
16+
;; method name within JournalPanel class
17+
onText
18+
19+
;; a method name within JournalPanel class
20+
delt

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ trying to commit again.
132132

133133
Improvements and fixes are always appreciated.
134134

135-
Before contribuing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdfgui/blob/main/CODE_OF_CONDUCT.rst>`_.
135+
Before contributing, please read our `Code of Conduct <https://github.com/diffpy/diffpy.pdfgui/blob/main/CODE_OF_CONDUCT.rst>`_.
136136

137137
Contact
138138
-------

doc/manual/html/readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This directory need to be relativly the same as doc/build/html/manual from
1+
This directory need to be relatively the same as doc/build/html/manual from
22
doc/source/_static/images

doc/manual/pdfgui.texinfo

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ requirements. This can be done either for all atoms in the structure or for an
243243
arbitrary subset - for example when it is known that only a certain species
244244
show a local distortion. The code for space group definitions was provided by
245245
the Python Macromolecular Library (mmLib,
246-
@url{http://pymmlib.sourceforge.net}). This was extened to include
246+
@url{http://pymmlib.sourceforge.net}). This was extended to include
247247
non-standard space groups using the Computational Crystallography Toolbox
248248
(cctbx, @uref{https://cctbx.github.io}). PDFgui also supports supercell
249249
expansion of a normal unit cell.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies = {file = ["requirements/pip.txt"]}
5656
[tool.codespell]
5757
exclude-file = ".codespell/ignore_lines.txt"
5858
ignore-words = ".codespell/ignore_words.txt"
59-
skip = "*.cif,*.dat"
59+
skip = "*.cif,*.dat,*.html,*.m,*.textinfo"
6060

6161
[tool.black]
6262
line-length = 115

src/diffpy/pdfgui/control/calculation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def load(self, z, subpath):
252252
z -- zipped project file
253253
subpath -- path to its own storage within project file
254254
255-
returns a tree of internal hierachy
255+
returns a tree of internal hierarchy
256256
"""
257257
config = pickle.loads(z.read(subpath + "config"), encoding="latin1")
258258
self.rmin = config["rmin"]

src/diffpy/pdfgui/control/fitstructure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FitStructure(PDFStructure):
3535
Class data members:
3636
symposeps -- tolerance for recognizing site as symmetry position
3737
38-
Data members (in adition to those in PDFStructure):
38+
Data members (in addition to those in PDFStructure):
3939
owner -- instance of parent Fitting (set in Organizer.add())
4040
initial -- initial structure, same as self
4141
refined -- refined structure when available or None

src/diffpy/pdfgui/control/fitting.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Fitting(Organizer):
7373
Fitting will start a new thread to interact with the PdfFit server.
7474
7575
rw: fitness parameter
76-
tolerancy: accurancy requirement
76+
tolerancy: accuracy requirement
7777
step: current refinement step
7878
res: fitting result string
7979
parameters: parameter dictionary
@@ -200,7 +200,7 @@ def load(self, z, subpath):
200200
z -- zipped project file
201201
subpath -- path to its own storage within project file
202202
203-
returns a tree of internal hierachy
203+
returns a tree of internal hierarchy
204204
"""
205205
# subpath = projName/fitName/
206206
subs = subpath.split("/")
@@ -349,7 +349,7 @@ def configure(self):
349349
for key, var in struc.constraints.items():
350350
self.server.constrain(key, var.formula)
351351

352-
# phase paramters configured
352+
# phase parameters configured
353353

354354
for dataset in self.datasets:
355355
dataset.clearRefined()
@@ -493,7 +493,7 @@ def outputBondLengthAtoms(self, struc, i, j):
493493
return
494494

495495
def outputBondLengthTypes(self, struc, a1, a2, lb, ub):
496-
"""Output all a1-a2 bond lenghts within specified range.
496+
"""Output all a1-a2 bond lengths within specified range.
497497
498498
struc -- instance of PDFStructure
499499
a1 -- symbol of the first element in pair or "ALL"
@@ -589,7 +589,7 @@ def buildNameDict(self):
589589
"""build up a data name dictionary, which will map data name to a
590590
unique index
591591
592-
The private dataNameDict has such strcture:
592+
The private dataNameDict has such structure:
593593
{ 'd_data1':{'Gobs':12, 'Gcalc':11, ....},
594594
'd_data2':{'Gobs':10, 'Gcalc':9, ....},
595595
...
@@ -660,7 +660,7 @@ def appendStep(self, source):
660660
snapshot[nameDict["crw"]] = dataset.crw
661661
seq += 1
662662

663-
# udpate strucs
663+
# update strucs
664664
seq = 1
665665
for struc in self.strucs:
666666
id = struc._getStrId()

src/diffpy/pdfgui/control/organizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def load(self, z, subpath):
157157
z -- zipped project file
158158
subpath -- path to its own storage within project file
159159
160-
returns a tree of internal hierachy
160+
returns a tree of internal hierarchy
161161
"""
162162
# subpath = projName/myName/
163163
from urllib.parse import unquote_plus
@@ -223,7 +223,7 @@ def copy(self, other=None):
223223
def organization(self):
224224
"""get internal organization
225225
226-
returns a tree of internal hierachy
226+
returns a tree of internal hierarchy
227227
"""
228228
org = [None] * 4
229229
org[0] = self

src/diffpy/pdfgui/control/parameter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __getLinkedValue(self):
137137
srcfit = self.__findLinkedFitting()
138138
if srcfit is None:
139139
raise ControlKeyError("Fitting '%s' does not exist" % fitname)
140-
# Check to see if srcfit has paramter srcidx
140+
# Check to see if srcfit has parameter srcidx
141141
try:
142142
srcpar = srcfit.parameters[srcidx]
143143
except KeyError:

0 commit comments

Comments
 (0)