Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bobleesj committed Nov 22, 2024
1 parent 1fa25fc commit 1445d9f
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .codespell/ignore_words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ socio-economic

;; Frobenius norm used in np.linalg.norm
fro

;; class name within distutils module
ccompiler

;; structure file format
discus
4 changes: 2 additions & 2 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Authors
=======

Billinge Group and community contibutors.
Billinge Group and community contributors.

----

Expand All @@ -17,7 +17,7 @@ Previous significant contributors to this code were

Pavol Juhas, Chris Farrow, Jacques Bloch, Wenduo Zhou

Please see the github contributions and the header of each source file
Please see the github contributions and the header of each source file
for a detailed list of
contributors. This is an open-source project and we hope and expect
that the list of contributors will expand with time. Many thanks to
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ and run the following ::
pip install .

To confirm that the installation was successful, run the following in a terminal ::

python -c "import diffpy.pdffit2; print(diffpy.pdffit2.__version__)"

Support and Contribute
Expand Down
2 changes: 1 addition & 1 deletion doc/source/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The first example shows how to calculates the PDF for FCC nickel and saves the r
# display plot window, this must be the last command in the script
plt.show()

The scripts can be downloaded :download:`here <examples/Ni_calculation.py>`.
The scripts can be downloaded :download:`here <examples/Ni_calculation.py>`.

=======================================
Example 2: Performing simple refinement
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ dependencies = {file = ["requirements/pip.txt"]}
[tool.codespell]
exclude-file = ".codespell/ignore_lines.txt"
ignore-words = ".codespell/ignore_words.txt"
skip = "*.cif,*.dat"
skip = "*.cif,*.dat,*.cc,*.h"

[tool.black]
line-length = 115
Expand Down
14 changes: 7 additions & 7 deletions src/diffpy/pdffit2/pdffit.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def calc(self):
Raises:
pdffit2.calculationError when allocated space cannot
accomodate calculation
accommodate calculation
pdffit.unassignedError when space for calculation has not been
allocated
"""
Expand Down Expand Up @@ -572,7 +572,7 @@ def getR(self):
This function should only be called after data has been loaded or
calculated. Before a refinement, the list of r-points will reflect the
data. Afterwords, they will reflect the fit range.
data. Afterwards, they will reflect the fit range.
Raises: pdffit2.unassignedError if no data exists
Expand All @@ -599,7 +599,7 @@ def getpdf_obs(self):
This function should only be called after data has been loaded or
calculated. Before a refinement, the list of r-points will reflect the
data. Afterwords, they will reflect the fit range.
data. Afterwards, they will reflect the fit range.
Raises: pdffit2.unassignedError if no data exists
Expand All @@ -613,7 +613,7 @@ def getpdf_diff(self):
This function should only be called after data has been loaded or
calculated. Before a refinement, the list of r-points will reflect the
data. Afterwords, they will reflect the fit range.
data. Afterwards, they will reflect the fit range.
Raises: pdffit2.unassignedError if no data exists
Expand Down Expand Up @@ -880,7 +880,7 @@ def blen(self, *args):
if isinstance(a2, numbers.Integral):
a2 = atom_types[a2 - 1]
except IndexError:
# index of non-existant atom type
# index of non-existent atom type
return
# arguments are OK here, get bond length dictionary
bld = pdffit2.bond_length_types(self._handle, a1, a2, lb, ub)
Expand Down Expand Up @@ -930,8 +930,8 @@ def bond_length_types(self, a1, a2, lb, ub):
Return a dictionary of distance data containing
dij : list of bond lenghts within given bounds
ddij : list of bond legnth standard deviations
dij : list of bond lengths within given bounds
ddij : list of bond length standard deviations
ij0 : pairs of atom indices starting from 0
ij1 : pairs of atom indices starting from 1
Expand Down

0 comments on commit 1445d9f

Please sign in to comment.