Skip to content

Commit eabf170

Browse files
committed
skpkg: fix misspelled words
1 parent 94b53fc commit eabf170

File tree

9 files changed

+29
-19
lines changed

9 files changed

+29
-19
lines changed

.codespell/ignore_words.txt

Lines changed: 17 additions & 7 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

13-
;; class name within distutils module
14-
ccompiler
10+
;; dum as a C variable
11+
dum
12+
13+
;; gaus used for gaussian
14+
gaus
15+
16+
;; DISCUS is a software
17+
DISCUS
1518

16-
;; structure file format
17-
discus
19+
;; Periodic table elements
20+
Te
21+
Nd
22+
23+
;; Ois
24+
Ois
25+
26+
;; ccompiler
27+
ccompiler

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/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 lengths 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)