diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2017-05-09 12:16:14 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2017-05-09 12:16:14 +0300 |
commit | ef5684564e3074daf614846f30bfdd7f15f5254f (patch) | |
tree | 1b604adcf75bec0009c27d340e6ede2adb03b2ec /numpy/lib | |
parent | 23b0cf3a5925dbc1f0503fbdacdf8088372f4ab5 (diff) | |
download | numpy-ef5684564e3074daf614846f30bfdd7f15f5254f.tar.gz |
ENH: Spelling fixes
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/_datasource.py | 2 | ||||
-rw-r--r-- | numpy/lib/function_base.py | 2 | ||||
-rw-r--r-- | numpy/lib/index_tricks.py | 2 | ||||
-rw-r--r-- | numpy/lib/info.py | 2 | ||||
-rw-r--r-- | numpy/lib/shape_base.py | 2 | ||||
-rw-r--r-- | numpy/lib/tests/test_function_base.py | 4 | ||||
-rw-r--r-- | numpy/lib/tests/test_stride_tricks.py | 2 | ||||
-rw-r--r-- | numpy/lib/utils.py | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/numpy/lib/_datasource.py b/numpy/lib/_datasource.py index c528de608..3affc5195 100644 --- a/numpy/lib/_datasource.py +++ b/numpy/lib/_datasource.py @@ -43,7 +43,7 @@ _open = open # Using a class instead of a module-level dictionary -# to reduce the inital 'import numpy' overhead by +# to reduce the initial 'import numpy' overhead by # deferring the import of bz2 and gzip until needed # TODO: .zip support, .tar support? diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 3c39d1a7b..8ee6a54dd 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -1607,7 +1607,7 @@ def gradient(f, *varargs, **kwargs): Notes ----- - Assuming that :math:`f\\in C^{3}` (i.e., :math:`f` has at least 3 continous + Assuming that :math:`f\\in C^{3}` (i.e., :math:`f` has at least 3 continuous derivatives) and let be :math:`h_{*}` a non homogeneous stepsize, the spacing the finite difference coefficients are computed by minimising the consistency error :math:`\\eta_{i}`: diff --git a/numpy/lib/index_tricks.py b/numpy/lib/index_tricks.py index dc8eb1c4a..003774ce2 100644 --- a/numpy/lib/index_tricks.py +++ b/numpy/lib/index_tricks.py @@ -254,7 +254,7 @@ class AxisConcatenator(object): if not isinstance(key, tuple): key = (key,) - # copy attributes, since they can be overriden in the first argument + # copy attributes, since they can be overridden in the first argument trans1d = self.trans1d ndmin = self.ndmin matrix = self.matrix diff --git a/numpy/lib/info.py b/numpy/lib/info.py index e00406407..8815a52f0 100644 --- a/numpy/lib/info.py +++ b/numpy/lib/info.py @@ -103,7 +103,7 @@ roots Find roots of polynomial given coefficients polyint Integrate polynomial polyder Differentiate polynomial polyadd Add polynomials -polysub Substract polynomials +polysub Subtract polynomials polymul Multiply polynomials polydiv Divide polynomials polyval Evaluate polynomial at given argument diff --git a/numpy/lib/shape_base.py b/numpy/lib/shape_base.py index 588047952..830943e72 100644 --- a/numpy/lib/shape_base.py +++ b/numpy/lib/shape_base.py @@ -186,7 +186,7 @@ def apply_over_axes(func, a, axes): Notes ------ This function is equivalent to tuple axis arguments to reorderable ufuncs - with keepdims=True. Tuple axis arguments to ufuncs have been availabe since + with keepdims=True. Tuple axis arguments to ufuncs have been available since version 1.7.0. Examples diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py index 7c07606f6..4f21e261f 100644 --- a/numpy/lib/tests/test_function_base.py +++ b/numpy/lib/tests/test_function_base.py @@ -2787,7 +2787,7 @@ class TestPercentile(TestCase): interpolation="higher").shape, (3, 3, 5, 6)) def test_scalar_q(self): - # test for no empty dimensions for compatiblity with old percentile + # test for no empty dimensions for compatibility with old percentile x = np.arange(12).reshape(3, 4) assert_equal(np.percentile(x, 50), 5.5) self.assertTrue(np.isscalar(np.percentile(x, 50))) @@ -2808,7 +2808,7 @@ class TestPercentile(TestCase): assert_equal(np.percentile(x, 50, axis=1, out=out), r1) assert_equal(out, r1) - # test for no empty dimensions for compatiblity with old percentile + # test for no empty dimensions for compatibility with old percentile x = np.arange(12).reshape(3, 4) assert_equal(np.percentile(x, 50, interpolation='lower'), 5.) self.assertTrue(np.isscalar(np.percentile(x, 50))) diff --git a/numpy/lib/tests/test_stride_tricks.py b/numpy/lib/tests/test_stride_tricks.py index 39a76c2f6..7dc3c4d24 100644 --- a/numpy/lib/tests/test_stride_tricks.py +++ b/numpy/lib/tests/test_stride_tricks.py @@ -407,7 +407,7 @@ def test_writeable(): _, result = broadcast_arrays(0, original) assert_equal(result.flags.writeable, False) - # regresssion test for GH6491 + # regression test for GH6491 shape = (2,) strides = [0] tricky_array = as_strided(np.array(0), shape, strides) diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index 61aa5e33b..fad159c7e 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -339,7 +339,7 @@ def who(vardict=None): #----------------------------------------------------------------------------- -# NOTE: pydoc defines a help function which works simliarly to this +# NOTE: pydoc defines a help function which works similarly to this # except it uses a pager to take over the screen. # combine name and arguments and split to multiple lines of width |