summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-01-10 23:17:25 +0100
committerDimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>2022-01-12 22:44:39 +0100
commit76b1ba156e792187f133db8e8bdd968a3fdbe5be (patch)
tree3bd7ae04ac2748bb030f1a55326d79dd409ea36a
parent18aa14c0aa699506bea357f46a18cbdfabc3d951 (diff)
downloadnumpy-76b1ba156e792187f133db8e8bdd968a3fdbe5be.tar.gz
MAINT, DOC: fix new typos detected by codespell
-rw-r--r--doc/RELEASE_WALKTHROUGH.rst.txt2
-rw-r--r--doc/neps/nep-0005-generalized-ufuncs.rst2
-rw-r--r--doc/release/upcoming_changes/15006.new_feature.rst4
-rw-r--r--doc/source/reference/simd/build-options.rst4
-rw-r--r--numpy/_globals.py2
-rw-r--r--numpy/core/_add_newdocs.py4
-rw-r--r--numpy/core/include/numpy/experimental_dtype_api.h2
-rw-r--r--numpy/core/src/common/simd/vsx/vsx.h2
-rw-r--r--numpy/core/src/umath/reduction.c2
-rw-r--r--numpy/core/src/umath/ufunc_object.c2
-rw-r--r--numpy/core/tests/test_api.py2
-rw-r--r--numpy/distutils/checks/cpu_vxe.c2
-rwxr-xr-xnumpy/f2py/crackfortran.py2
-rw-r--r--numpy/lib/npyio.py2
-rw-r--r--numpy/testing/_private/extbuild.py2
15 files changed, 18 insertions, 18 deletions
diff --git a/doc/RELEASE_WALKTHROUGH.rst.txt b/doc/RELEASE_WALKTHROUGH.rst.txt
index 9324ce971..c4e305909 100644
--- a/doc/RELEASE_WALKTHROUGH.rst.txt
+++ b/doc/RELEASE_WALKTHROUGH.rst.txt
@@ -12,7 +12,7 @@ ensure that you have the needed software. Most software can be installed with
pip, but some will require apt-get, dnf, or whatever your system uses for
software. Note that at this time the documentation cannot be built with Python
3.10, for that use 3.8-3.9 instead. You will also need a GitHub personal access
-token (PAT) to push the documention. There are a few ways to streamline things.
+token (PAT) to push the documentation. There are a few ways to streamline things.
- Git can be set up to use a keyring to store your GitHub personal access token.
Search online for the details.
diff --git a/doc/neps/nep-0005-generalized-ufuncs.rst b/doc/neps/nep-0005-generalized-ufuncs.rst
index 43459a555..8ef6f3453 100644
--- a/doc/neps/nep-0005-generalized-ufuncs.rst
+++ b/doc/neps/nep-0005-generalized-ufuncs.rst
@@ -45,7 +45,7 @@ determines how the dimensions of each input/output object are split
into core and loop dimensions:
#. While an input array has a smaller dimensionality than the corresponding
- number of core dimensions, 1's are pre-pended to its shape.
+ number of core dimensions, 1's are prepended to its shape.
#. The core dimensions are removed from all inputs and the remaining
dimensions are broadcasted; defining the loop dimensions.
#. The output is given by the loop dimensions plus the output core dimensions.
diff --git a/doc/release/upcoming_changes/15006.new_feature.rst b/doc/release/upcoming_changes/15006.new_feature.rst
index 80d878aa6..fe751921e 100644
--- a/doc/release/upcoming_changes/15006.new_feature.rst
+++ b/doc/release/upcoming_changes/15006.new_feature.rst
@@ -1,7 +1,7 @@
crackfortran has support for operator and assignment overloading
----------------------------------------------------------------
-``crackfortran`` parser now understands operator and assignement
-defintions in a module. They are added in the ``body`` list of the
+``crackfortran`` parser now understands operator and assignment
+definitions in a module. They are added in the ``body`` list of the
module which contains a new key ``implementedby`` listing the names
of the subroutines or functions implementing the operator or
assignment.
diff --git a/doc/source/reference/simd/build-options.rst b/doc/source/reference/simd/build-options.rst
index 0a40d3ff5..0994f15aa 100644
--- a/doc/source/reference/simd/build-options.rst
+++ b/doc/source/reference/simd/build-options.rst
@@ -79,7 +79,7 @@ I am building NumPy for my local use
And I do not intend to export the build to other users or target a
different CPU than what the host has.
-Set `native` for baseline, or manualy specify the CPU features in case of option
+Set `native` for baseline, or manually specify the CPU features in case of option
`native` isn't supported by your platform::
python setup.py build --cpu-baseline="native" bdist
@@ -235,7 +235,7 @@ Behaviors
python setup.py build --cpu-baseline=ssse3,sse41,sse42,avx,avx2,fma3
- ``--cpu-dispatch`` escapes any specified baseline features and also escapes
- any features not supported by the target platform or compiler without rasing
+ any features not supported by the target platform or compiler without raising
fatal errors.
Eventually, you should always check the final report through the build log
diff --git a/numpy/_globals.py b/numpy/_globals.py
index c88874725..593d90e42 100644
--- a/numpy/_globals.py
+++ b/numpy/_globals.py
@@ -116,7 +116,7 @@ class _CopyMode(enum.Enum):
NEVER = 2
def __bool__(self):
- # For backwards compatiblity
+ # For backwards compatibility
if self == _CopyMode.ALWAYS:
return True
diff --git a/numpy/core/_add_newdocs.py b/numpy/core/_add_newdocs.py
index a8d73af3f..11d1810f9 100644
--- a/numpy/core/_add_newdocs.py
+++ b/numpy/core/_add_newdocs.py
@@ -833,7 +833,7 @@ add_newdoc('numpy.core.multiarray', 'array',
the returned array will be forced to be a base-class array (default).
ndmin : int, optional
Specifies the minimum number of dimensions that the resulting
- array should have. Ones will be pre-pended to the shape as
+ array should have. Ones will be prepended to the shape as
needed to meet this requirement.
${ARRAY_FUNCTION_LIKE}
@@ -4093,7 +4093,7 @@ add_newdoc('numpy.core.multiarray', 'ndarray', ('partition',
See Also
--------
- numpy.partition : Return a parititioned copy of an array.
+ numpy.partition : Return a partitioned copy of an array.
argpartition : Indirect partition.
sort : Full sort.
diff --git a/numpy/core/include/numpy/experimental_dtype_api.h b/numpy/core/include/numpy/experimental_dtype_api.h
index 83639f186..88565cd52 100644
--- a/numpy/core/include/numpy/experimental_dtype_api.h
+++ b/numpy/core/include/numpy/experimental_dtype_api.h
@@ -141,7 +141,7 @@ typedef struct {
* NOTE: Expected changes:
* * invert logic of floating point error flag
* * probably split runtime and general flags into two
- * * should possibly not use an enum for typdef for more stable ABI?
+ * * should possibly not use an enum for typedef for more stable ABI?
*/
typedef enum {
/* Flag for whether the GIL is required */
diff --git a/numpy/core/src/common/simd/vsx/vsx.h b/numpy/core/src/common/simd/vsx/vsx.h
index 66b76208f..b4d8172a2 100644
--- a/numpy/core/src/common/simd/vsx/vsx.h
+++ b/numpy/core/src/common/simd/vsx/vsx.h
@@ -61,7 +61,7 @@ typedef struct { npyv_f64 val[3]; } npyv_f64x3;
#define npyv_nlanes_f32 4
#define npyv_nlanes_f64 2
-// using __bool with typdef cause ambiguous errors
+// using __bool with typedef cause ambiguous errors
#define npyv_b8 __vector __bool char
#define npyv_b16 __vector __bool short
#define npyv_b32 __vector __bool int
diff --git a/numpy/core/src/umath/reduction.c b/numpy/core/src/umath/reduction.c
index 8cb44d433..8c4df6e02 100644
--- a/numpy/core/src/umath/reduction.c
+++ b/numpy/core/src/umath/reduction.c
@@ -337,7 +337,7 @@ PyUFunc_ReduceWrapper(PyArrayMethod_Context *context,
/*
* Note that we need to ensure that the iterator is reset before getting
- * the fixed strides. (The buffer information is unitialized before.)
+ * the fixed strides. (The buffer information is uninitialized before.)
*/
npy_intp fixed_strides[3];
NpyIter_GetInnerFixedStrideArray(iter, fixed_strides);
diff --git a/numpy/core/src/umath/ufunc_object.c b/numpy/core/src/umath/ufunc_object.c
index 415ff0f07..27a2cfcd5 100644
--- a/numpy/core/src/umath/ufunc_object.c
+++ b/numpy/core/src/umath/ufunc_object.c
@@ -2704,7 +2704,7 @@ PyUFunc_GenericFunction(PyUFuncObject *NPY_UNUSED(ufunc),
* @param out_descrs New references to the resolved descriptors (on success).
* @param method The ufunc method, "reduce", "reduceat", or "accumulate".
- * @returns ufuncimpl The `ArrayMethod` implemention to use. Or NULL if an
+ * @returns ufuncimpl The `ArrayMethod` implementation to use. Or NULL if an
* error occurred.
*/
static PyArrayMethodObject *
diff --git a/numpy/core/tests/test_api.py b/numpy/core/tests/test_api.py
index d3c7211cd..22a06619c 100644
--- a/numpy/core/tests/test_api.py
+++ b/numpy/core/tests/test_api.py
@@ -144,7 +144,7 @@ def test_array_array():
@pytest.mark.parametrize("array", [True, False])
def test_array_impossible_casts(array):
- # All builtin types can forst cast as least theoretically
+ # All builtin types can be forcibly cast, at least theoretically,
# but user dtypes cannot necessarily.
rt = rational(1, 2)
if array:
diff --git a/numpy/distutils/checks/cpu_vxe.c b/numpy/distutils/checks/cpu_vxe.c
index ca41f8434..e6933adce 100644
--- a/numpy/distutils/checks/cpu_vxe.c
+++ b/numpy/distutils/checks/cpu_vxe.c
@@ -12,7 +12,7 @@ int main(int argc, char **argv)
__vector bool int m = vec_cmpge(x, y);
x = vec_sel(x, y, m);
- // need to test the existance of intrin "vflls" since vec_doublee
+ // need to test the existence of intrin "vflls" since vec_doublee
// is vec_doublee maps to wrong intrin "vfll".
// see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100871
#if defined(__GNUC__) && !defined(__clang__)
diff --git a/numpy/f2py/crackfortran.py b/numpy/f2py/crackfortran.py
index 10b210d14..aacd2c676 100755
--- a/numpy/f2py/crackfortran.py
+++ b/numpy/f2py/crackfortran.py
@@ -2686,7 +2686,7 @@ def analyzevars(block):
# Skip a variable that
# - n depends on
# - has user-defined initialization expression
- # - has user-defined dependecies
+ # - has user-defined dependencies
continue
if solver is not None:
# v can be solved from d, hence, we
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index a6c2d4c2d..bbf896bda 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -818,7 +818,7 @@ def _loadtxt_pack_items(packing, items):
def _ensure_ndmin_ndarray_check_param(ndmin):
"""Just checks if the param ndmin is supported on
- _ensure_ndmin_ndarray. Is intented to be used as
+ _ensure_ndmin_ndarray. It is intended to be used as
verification before running anything expensive.
e.g. loadtxt, genfromtxt
"""
diff --git a/numpy/testing/_private/extbuild.py b/numpy/testing/_private/extbuild.py
index 20bf3dcea..940e2f7d7 100644
--- a/numpy/testing/_private/extbuild.py
+++ b/numpy/testing/_private/extbuild.py
@@ -27,7 +27,7 @@ def build_and_import_extension(
functions : list of fragments
Each fragment is a sequence of func_name, calling convention, snippet.
prologue : string
- Code to preceed the rest, usually extra ``#include`` or ``#define``
+ Code to precede the rest, usually extra ``#include`` or ``#define``
macros.
build_dir : pathlib.Path
Where to build the module, usually a temporary directory