diff options
| author | luz.paz <luzpaz@users.noreply.github.com> | 2018-02-27 03:01:24 -0500 |
|---|---|---|
| committer | luz.paz <luzpaz@users.noreply.github.com> | 2018-02-27 03:01:47 -0500 |
| commit | efc0e6438ac18175c9d9ae695374c945d4bd2211 (patch) | |
| tree | d1e467c7730eae38f208b6589b7c2c39b7763743 /numpy | |
| parent | 6462068ee40344ebe9a60b3ddcad0e9590d5a260 (diff) | |
| download | numpy-efc0e6438ac18175c9d9ae695374c945d4bd2211.tar.gz | |
DOC/MAINT: More misc. typos
Found via `codespell` and `grep`
Diffstat (limited to 'numpy')
| -rw-r--r-- | numpy/core/src/umath/override.c | 4 | ||||
| -rw-r--r-- | numpy/core/tests/test_indexing.py | 2 | ||||
| -rw-r--r-- | numpy/core/tests/test_multiarray.py | 8 | ||||
| -rw-r--r-- | numpy/testing/nose_tools/parameterized.py | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/numpy/core/src/umath/override.c b/numpy/core/src/umath/override.c index 7e787b8fe..0aef093b0 100644 --- a/numpy/core/src/umath/override.c +++ b/numpy/core/src/umath/override.c @@ -210,7 +210,7 @@ normalize_reduceat_args(PyUFuncObject *ufunc, PyObject *args, PyObject **normal_args, PyObject **normal_kwds) { /* - * ufunc.reduceat(a, indicies[, axis, dtype, out]) + * ufunc.reduceat(a, indices[, axis, dtype, out]) * the number of arguments has been checked in PyUFunc_GenericReduction. */ npy_intp i; @@ -224,7 +224,7 @@ normalize_reduceat_args(PyUFuncObject *ufunc, PyObject *args, "arguments but %"NPY_INTP_FMT" were given", nargs); return -1; } - /* a and indicies */ + /* a and indices */ *normal_args = PyTuple_GetSlice(args, 0, 2); if (*normal_args == NULL) { return -1; diff --git a/numpy/core/tests/test_indexing.py b/numpy/core/tests/test_indexing.py index df9eca627..cd4ea611a 100644 --- a/numpy/core/tests/test_indexing.py +++ b/numpy/core/tests/test_indexing.py @@ -808,7 +808,7 @@ class TestMultiIndexingAutomated(object): `arr[indices]` should be identical. no_copy : bool Whether the indexing operation requires a copy. If this is `True`, - `np.may_share_memory(arr, arr[indicies])` should be `True` (with + `np.may_share_memory(arr, arr[indices])` should be `True` (with some exceptions for scalars and possibly 0-d arrays). Notes diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index b3515ae6e..fba169ebf 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -1520,9 +1520,9 @@ class TestMethods(object): assert_equal(c, ai, msg) # test sorting of complex arrays requiring byte-swapping, gh-5441 - for endianess in '<>': + for endianness in '<>': for dt in np.typecodes['Complex']: - arr = np.array([1+3.j, 2+2.j, 3+1.j], dtype=endianess + dt) + arr = np.array([1+3.j, 2+2.j, 3+1.j], dtype=endianness + dt) c = arr.copy() c.sort() msg = 'byte-swapped complex sort, dtype={0}'.format(dt) @@ -1778,9 +1778,9 @@ class TestMethods(object): assert_equal(bi.copy().argsort(kind=kind), b, msg) # test argsort of complex arrays requiring byte-swapping, gh-5441 - for endianess in '<>': + for endianness in '<>': for dt in np.typecodes['Complex']: - arr = np.array([1+3.j, 2+2.j, 3+1.j], dtype=endianess + dt) + arr = np.array([1+3.j, 2+2.j, 3+1.j], dtype=endianness + dt) msg = 'byte-swapped complex argsort, dtype={0}'.format(dt) assert_equal(arr.argsort(), np.arange(len(arr), dtype=np.intp), msg) diff --git a/numpy/testing/nose_tools/parameterized.py b/numpy/testing/nose_tools/parameterized.py index d094f7c7f..53e67517d 100644 --- a/numpy/testing/nose_tools/parameterized.py +++ b/numpy/testing/nose_tools/parameterized.py @@ -456,8 +456,8 @@ class parameterized(object): frame = stack[1] frame_locals = frame[0].f_locals - paramters = cls.input_as_callable(input)() - for num, p in enumerate(paramters): + parameters = cls.input_as_callable(input)() + for num, p in enumerate(parameters): name = name_func(f, num, p) frame_locals[name] = cls.param_as_standalone_func(p, f, name) frame_locals[name].__doc__ = doc_func(f, num, p) |
