Skip to content

Commit d47b719

Browse files
authored
Merge pull request #135 from cadenmyers13/pre-commit-codespell
skpkg: pre-commit codespell fixes
2 parents 94b53fc + 25fe3cc commit d47b719

File tree

13 files changed

+51
-24
lines changed

13 files changed

+51
-24
lines changed

.codespell/ignore_words.txt

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,24 @@
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
129

1310
;; class name within distutils module
1411
ccompiler
1512

13+
;; dum as a C variable
14+
dum
15+
16+
;; gaus used for gaussian
17+
gaus
18+
1619
;; structure file format
17-
discus
20+
DISCUS
21+
22+
;; Periodic table elements
23+
Te
24+
Nd
25+
26+
;; Ois
27+
Ois

CODE_OF_CONDUCT.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Our Pledge
88
We as members, contributors, and leaders pledge to make participation in our
99
community a harassment-free experience for everyone, regardless of age, body
1010
size, visible or invisible disability, ethnicity, sex characteristics, gender
11-
identity and expression, level of experience, education, socio-economic status,
11+
identity and expression, level of experience, education, socioeconomic status,
1212
nationality, personal appearance, race, caste, color, religion, or sexual
1313
identity and orientation.
1414

environment.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

news/pre-commit-codespell.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* Fix misspelled words in source code comments.
20+
21+
**Security:**
22+
23+
* <news item>

src/extensions/libpdffit2/PointsInSphere.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*
1515
* classes PointsInSphere, ReflectionsInQminQmax, ReflectionsInDmaxDmin
1616
*
17-
* Comments: sequencers for lattice points insided 3D sphere
17+
* Comments: sequencers for lattice points inside 3D sphere
1818
*
1919
***********************************************************************/
2020

@@ -117,7 +117,7 @@ void PointsInSphere::rewind()
117117
mHalfSpan = Rmax*latpar.ar;
118118
hi_m = int(ceil(mHalfSpan));
119119
m = -hi_m;
120-
// make indices n, o invalid, reset the neares point
120+
// make indices n, o invalid, reset the nearest point
121121
n = hi_n = 0;
122122
o = hi_o = outside_o = 0;
123123
n0plane = o0plane = o0line = 0.0;

src/extensions/libpdffit2/fit.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Mixed definitions of several DataSet, Fit and PdfFit methods
1616
*
1717
* Comments: Up to date with 1.3.10 Fortran version.
18-
* What a spagetti.
18+
* What a spaghetti.
1919
*
2020
***********************************************************************/
2121

src/extensions/libpdffit2/metric.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ void Phase::dtensor(double vec[3], double win[3], double dten[3][3],
302302
}
303303

304304
/********************************************************
305-
Calulates the SCALARPRODUCT of two vectors
305+
Calculates the SCALARPRODUCT of two vectors
306306
1/D**2 = H(I)*K(J)*RTEN(I,J)
307307
uses the phase's metric
308308
*********************************************************/

src/extensions/libpdffit2/nrutil.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
************************************************************************
1414
*
15-
* Utilities from numerical recipies.
15+
* Utilities from numerical recipes.
1616
*
1717
* Comments:
1818
*

src/extensions/libpdffit2/nrutil.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
************************************************************************
1414
*
15-
* Utilities from numerical recipies.
15+
* Utilities from numerical recipes.
1616
*
1717
* Comments:
1818
*

src/extensions/libpdffit2/pdf.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
* Mixed methods for PDF calculation from PdfFit, DataSet and Phase
1616
*
1717
* Comments: Up to date with 1.3.10 Fortran version.
18-
* What a spagetti.
18+
* What a spaghetti.
1919
*
2020
***********************************************************************/
2121

@@ -1387,7 +1387,7 @@ bool isRegular(Iterator first, Iterator last)
13871387

13881388
/* Wed Oct 12 2005 - CLF
13891389
* Using read_data_arrays adds functionality
1390-
* to pdffit2, allowing one to read data that is alread stored as arrays.
1390+
* to pdffit2, allowing one to read data that is already stored as arrays.
13911391
*/
13921392
void DataSet::read_data_arrays(int _iset, char tp, double _qmax, double _qdamp,
13931393
int length, double * r_data, double * Gr_data,

src/extensions/libpdffit2/pdflsmin.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void PdfFit::mrqmin(vector<double> &a, vector<int> &ia, matrix<double> &covar,
6565
// Levenberg-Marquardt method, attempting to reduce the value Chi2 of a fit
6666
// between a set of data points x[1..ndata], y[1..ndata] with individual
6767
// standard deviations sig[1..ndata], and a nonlinear function dependent on ma
68-
// coeffcients a[1..ma]. The input array ia[1..ma] indicates by nonzero
68+
// coefficients a[1..ma]. The input array ia[1..ma] indicates by nonzero
6969
// entries those components of a that should be fitted for, and by zero entries
7070
// those components that should be held fixed at their input values. The
7171
// program re- turns current best-fit values for the parameters a[1..ma], and

src/extensions/libpdffit2/stru.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ string lstrip(const string &line)
106106
return naked;
107107
}
108108

109-
// substitute all occurences of literal pattern with new string
109+
// substitute all occurrences of literal pattern with new string
110110
void substitute(string& s, const string& pat, const string& sub)
111111
{
112112
string::size_type p;
@@ -230,7 +230,7 @@ void Phase::read_struct_stream(int _iphase, istream& fstruct)
230230
/******************************************************************
231231
This subroutine reads the header of a structure file
232232
Wed Oct 12 2005 - CLF
233-
Changed ifstream to istream to accomodate stringstreams
233+
Changed ifstream to istream to accommodate stringstreams
234234
as well.
235235
********************************************************************/
236236

src/extensions/pdffit2module/misc.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,8 +1381,8 @@ char pypdffit2_bond_length_types__doc__[] =
13811381
"\n"
13821382
"Return a dictionary of distance data containing:\n"
13831383
"\n"
1384-
"dij : list of bond lenghts within given bounds\n"
1385-
"ddij : list of bond legnth standard deviations\n"
1384+
"dij : list of bond lengths within given bounds\n"
1385+
"ddij : list of bond length standard deviations\n"
13861386
"ij0 : list of tupled pairs of indices starting at 0\n"
13871387
"ij1 : list of tupled pairs of indices starting at 1";
13881388
char pypdffit2_bond_length_types__name__[] = "bond_length_types";

0 commit comments

Comments
 (0)