Skip to content

Commit 46c0697

Browse files
committed
fix typos suggested by codespell
1 parent 2acb52c commit 46c0697

10 files changed

+30
-27
lines changed

.codespell/ignore_words.txt

+3
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ socio-economic
99

1010
;; Frobenius norm used in np.linalg.norm
1111
fro
12+
13+
;; library used for Python package release, no longer used
14+
rever

README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ trying to commit again.
190190

191191
Improvements and fixes are always appreciated.
192192

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

195195
Contact
196196
-------

TUTORIAL.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Basic PDFmorph Workflow
148148

149149
We are getting closer to an acceptably close fit to our data!
150150

151-
8. Finally, we will examine the stretch factor. Provide an intial
151+
8. Finally, we will examine the stretch factor. Provide an initial
152152
guess by typing ::
153153

154154
pdfmorph --scale=0.8 --smear=-0.08 --stretch=0.5 --rmin=1.5 --rmax=30 -a darkSub_rh20_C_01.gr darkSub_rh20_C_44.gr
@@ -183,5 +183,5 @@ Enjoy the software!
183183
Bug Reports
184184
-----------
185185

186-
Please enjoy using our software! If you come accross any bugs in the
186+
Please enjoy using our software! If you come across any bugs in the
187187
application, please report them to [email protected]

doc/manual/acknowledgements.texinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The PDFmorph app was developed by the Billinge group at Columbia University.
22
The examples in the tutorial part of the manual were made possible by data
33
collected by Soham Banerjee at Brookhaven National Laboratory,
4-
Benjamin Frandsen during his PhD at Columbia Unversity,
4+
Benjamin Frandsen during his PhD at Columbia University,
55
and Long Yang from Tonji University.
66

77
The DiffPy development team is the set of all contributors to DiffPy projects.

doc/manual/pdfmorph.texinfo

+12-12
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ it has not been extensively tested beyond the PDF.
156156
It runs on Windows, Mac OS, Linux, and all major Unix systems.
157157
The source code is freely available at @url{https://github.com/diffpy/diffpy.pdfmorph}.
158158

159-
If you come accross any bugs in the application, please open an
159+
If you come across any bugs in the application, please open an
160160
@url{https://github.com/diffpy/diffpy.pdfmorph/issues, issue} or email
161161
diffpy-dev@@googlegroups.com.
162162

@@ -440,8 +440,8 @@ extra tutorial data @code{additionalData.zip}} before proceeding.
440440
@cindex performing multiple morphs
441441

442442
It may be useful to morph a PDF against multiple targets: for example, you may want
443-
to morph a PDF against a sequence of PDFs measured at various temepratures to determine
444-
whether a phase change has occured. PDFmorph currently allows users to morph a PDF
443+
to morph a PDF against a sequence of PDFs measured at various temperatures to determine
444+
whether a phase change has occurred. PDFmorph currently allows users to morph a PDF
445445
against all files in a selected directory and plot resulting @math{R_W} values from each morph.
446446
It is advised that the lowest temperature PDF be that morphed and the higher temperature PDFs
447447
act as targets as the smear morph is only able to account for increases in thermal motion.
@@ -619,15 +619,15 @@ Again, we can begin by plotting the bulk material against our nanoparticle.
619619
@example
620620
pdfmorph Ni_bulk.gr Ni_nano_spheroid.cgr
621621
@end example
622-
@item The nanoparticle shape of the calculated PDF is an oblate spheroid with equitorial
622+
@item The nanoparticle shape of the calculated PDF is an oblate spheroid with equatorial
623623
radius of about @math{12} and polar radius of about @math{6} (this information is contained
624624
within the @code{Ni_nano_spheroid.cgr} file). To apply the spheroidal shape effects onto the
625625
bulk, run
626626
@example
627627
pdfmorph Ni_bulk.gr Ni_nano_spheroid.cgr --radius=12 --pradius=6 -a
628628
@end example
629629
@itemize
630-
@item The @code{--radius} option corresponds to the equitorial radius.
630+
@item The @code{--radius} option corresponds to the equatorial radius.
631631
@item The @code{--pradius} option corresponds to the polar radius.
632632
@end itemize
633633
@item Run the same command without @code{-a} to refine. Refining should give
@@ -792,24 +792,24 @@ using atomic pair distribution function analysis. Phys. Rev. B, 76(11), 115413.
792792
The available shape morphs are listed below:
793793
@itemize
794794
@item @code{--radius=RADIUS} - Multiply the PDF by the nanoparticle form factor for a sphere of radius @code{RADIUS}.
795-
If used with @code{--pradius}, multiply the PDF by the nanoparticle form factor for a spheroid of equitorial radius
795+
If used with @code{--pradius}, multiply the PDF by the nanoparticle form factor for a spheroid of equatorial radius
796796
@code{RADIUS} and polar radius @code{PRADIUS}.
797797
@itemize
798798
@item The sphere form factor was computed by Kodama et al. @footnote{Kodama, K., Iikubo, S., Taguchi, T., &
799799
Shamoto, S. (2006). Finite size effects of nanoparticles on the atomic pair distribution functions.
800800
Acta Crystallographica Section A, 62(6), 444–453. @url{https://doi.org/10.1107/S0108767306034635}}.
801801
@end itemize
802-
@item @code{--pradius=PRADIUS} - Multiply the PDF by the nanoparticle form factor for a spheroid of equitorial radius
802+
@item @code{--pradius=PRADIUS} - Multiply the PDF by the nanoparticle form factor for a spheroid of equatorial radius
803803
@code{RADIUS} and polar radius @code{PRADIUS}.
804804
@itemize
805805
@item The spheroid form factor was computed by Lei et al. @footnote{Lei, M., de Graff, A. M. R., Thorpe, M. F., Wells,
806806
S. A., & Sartbaeva, A. (2009). Uncovering the intrinsic geometry from the atomic pair distribution function of
807807
nanomaterials. Phys. Rev. B, 80(2), 024118. @url{https://doi.org/10.1103/PhysRevB.80.024118}}.
808808
@end itemize
809809
@item @code{--iradius=IRADIUS} - Divide the PDF by the nanoparticle form factor for a sphere of radius @code{IRADIUS}.
810-
If used with @code{--ipradius}, divide the PDF by the nanoparticle form factor for a spheroid of equitorial radius
810+
If used with @code{--ipradius}, divide the PDF by the nanoparticle form factor for a spheroid of equatorial radius
811811
@code{IRADIUS} and polar radius @code{IPRADIUS}.
812-
@item @code{--ipradius=IPRADIUS} - Divide the PDF by the nanoparticle form factor for a spheroid of equitorial radius
812+
@item @code{--ipradius=IPRADIUS} - Divide the PDF by the nanoparticle form factor for a spheroid of equatorial radius
813813
@code{IRADIUS} and polar radius @code{IPRADIUS}.
814814
@end itemize
815815

@@ -842,7 +842,7 @@ post-expansion. The volume of the nanoparticle also increases by a factor @math{
842842
@displaymath
843843
\gamma'_0(\vec{r}) = {1 \over {\alpha^3 V}} \int \int \int s'(\vec{r}')s'(\vec{r}'+\vec{r})d\vec{r}'.
844844
@end displaymath
845-
Aplying a change of variables @math{\vec{r}' \rightarrow \vec{r}' / \alpha} gives
845+
Applying a change of variables @math{\vec{r}' \rightarrow \vec{r}' / \alpha} gives
846846
@displaymath
847847
\gamma'_0(\vec{r}) = {1 \over {\alpha^3 V}} \int \int \int s'(\alpha \vec{r}')s'(\alpha \vec{r}'+\vec{r})\alpha^3d\vec{r}',
848848
@end displaymath
@@ -963,7 +963,7 @@ requires us to apply a Gaussian dampening envelope centered at @math{r=0} with w
963963
@noindent @code{--radius=RADIUS}
964964
@* @indent Apply the nanoparticle form factor @math{\gamma_0} for a sphere of radius @code{RADIUS}.
965965
If @code{PRADIUS} is also specified, instead apply the characteristic function of a spheroid with
966-
equitorial radius @code{RADIUS} and polar radius @code{PRADIUS}.
966+
equatorial radius @code{RADIUS} and polar radius @code{PRADIUS}.
967967

968968
@noindent @code{--pradius=PRADIUS}
969969
@* @indent If @code{RADIUS} is also specified, see @code{--radius}. Otherwise, apply the characteristic
@@ -972,7 +972,7 @@ function of a sphere with radius @code{PRADIUS}.
972972
@noindent @code{--iradius=IRADIUS}
973973
@* @indent Apply the inverse characteristic function @math{1/\gamma_0} of a sphere of radius @code{IRADIUS}/
974974
If @code{IPRADIUS} is also specified, instead apply the characteristic function of a spheroid with
975-
equitorial radius @code{IRADIUS} and polar radius @code{PRADIUS}.
975+
equatorial radius @code{IRADIUS} and polar radius @code{PRADIUS}.
976976

977977
@noindent @code{--ipradius=IPRADIUS}
978978
@* @indent If @code{IRADIUS} is also specified, see @code{--iradius}. Otherwise, apply the characteristic

doc/source/quickstart.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Basic PDFmorph Workflow
150150

151151
We are getting closer to an acceptably close fit to our data!
152152

153-
8. Finally, we will examine the stretch factor. Provide an intial
153+
8. Finally, we will examine the stretch factor. Provide an initial
154154
guess by typing ::
155155

156156
pdfmorph --scale=0.8 --smear=-0.08 --stretch=0.5 --rmin=1.5 --rmax=30 -a darkSub_rh20_C_01.gr darkSub_rh20_C_44.gr
@@ -193,7 +193,7 @@ Performing Multiple Morphs
193193

194194
It may be useful to morph a PDF against multiple targets:
195195
for example, you may want to morph a PDF against multiple PDFs measured
196-
at various temepratures to determine whether a phase change has occured.
196+
at various temperatures to determine whether a phase change has occurred.
197197
PDFmorph currently allows users to morph a PDF against all files in a
198198
selected directory and plot resulting :math:`R_w` values from each morph.
199199

@@ -285,7 +285,7 @@ Currently, the supported nanoparticle shapes include: spheres and spheroids.
285285

286286
pdfmorph Ni_bulk.gr Ni_nano_spheroid.cgr --radius=12 --pradius=6 -a
287287

288-
Note that the equitorial radius corresponds to the ``--radius`` parameter and polar radius to ``--pradius``.
288+
Note that the equatorial radius corresponds to the ``--radius`` parameter and polar radius to ``--pradius``.
289289
3. Remove the ``-a`` tag to refine.
290290

291291
There is also support for morphing from a nanoparticle to a bulk. When applying the inverse morphs,
@@ -294,5 +294,5 @@ it is recommended to set ``--rmax=psize`` where ``psize`` is the longest diamete
294294
Bug Reports
295295
===========
296296

297-
Please enjoy using our software! If you come accross any bugs in the
297+
Please enjoy using our software! If you come across any bugs in the
298298
application, please report them to [email protected].

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ dependencies = {file = ["requirements/pip.txt"]}
5757
[tool.codespell]
5858
exclude-file = ".codespell/ignore_lines.txt"
5959
ignore-words = ".codespell/ignore_words.txt"
60-
skip = "*.cif,*.dat"
60+
skip = "*.cif,*.dat,*agr"
6161

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

src/diffpy/pdfmorph/pdfmorph_api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def pdfmorph(
8686
verbose=False,
8787
**kwargs,
8888
):
89-
"""function to perfom PDF morphing.
89+
"""function to perform PDF morphing.
9090
9191
Parameters
9292
----------
@@ -142,7 +142,7 @@ def pdfmorph(
142142
- morph_chain: diffpy.pdfmorph.morphs.morphchain.MorphChain
143143
The instance of processed morph chain.
144144
Calling ``x_morph, y_morph, x_target, y_target = morph_chain.xyallout``
145-
will conviniently retrun morphed data and reference data
145+
will conveniently return morphed data and reference data
146146
- morphed_cfg: dict
147147
A dictionary of refined morphing parameters
148148
- rw: float
@@ -248,11 +248,11 @@ def plot_morph(chain, ax=None, **kwargs):
248248
----------
249249
chain: diffpy.pdfmorph.morphs.morphchain.MorphChain
250250
An instance of processed morph chain.
251-
ax: matplotlib.axes.Axes, optinal
251+
ax: matplotlib.axes.Axes, optional
252252
An instance of Axes class to plot the morphing result.
253253
If ax is None, instances of new Figure and Axes will be created. Default to None.
254254
kwargs:
255-
Additional keyword arguements will be passed to ``ax.plot(...**kwargs)``
255+
Additional keyword arguments will be passed to ``ax.plot(...**kwargs)``
256256
257257
Returns
258258
-------

src/diffpy/pdfmorph/pdfmorph_io.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def single_morph_output(
4444
morph_results: dict
4545
Resulting data after morphing.
4646
save_file
47-
Name of file to print to. If None (defualt) print to terminal.
47+
Name of file to print to. If None (default) print to terminal.
4848
morph_file
4949
Name of the morphed PDF file. Required when printing to a non-terminal file.
5050
param xy_out: list

src/diffpy/pdfmorph/refine.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def _pearson(self, pvals):
7171
"""Pearson correlation function.
7272
7373
This gives e**-p (vector), where p is the pearson correlation function.
74-
We seek to minimize this, which occurrs when the correlation is the largest.
74+
We seek to minimize this, which occurs when the correlation is the largest.
7575
"""
7676
self._update_chain(pvals)
7777
_x_morph, _y_morph, _x_target, _y_target = self.chain(

0 commit comments

Comments
 (0)