From 0c70787c04d7b0febacb14edfe214cb68d87b6c3 Mon Sep 17 00:00:00 2001 From: luzpaz Date: Fri, 31 May 2019 03:13:33 -0400 Subject: MAINT: Misc. typo fixes (#13664) * DOC, MAINT: Misc. typo fixes Found via `codespell` --- numpy/core/shape_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'numpy/core/shape_base.py') diff --git a/numpy/core/shape_base.py b/numpy/core/shape_base.py index 45115adb6..ccec25a7a 100644 --- a/numpy/core/shape_base.py +++ b/numpy/core/shape_base.py @@ -555,10 +555,10 @@ def _concatenate_shapes(shapes, axis): ret[(slice(None),) * axis + sl_c] == c ``` - Thses are called slice prefixes since they are used in the recursive + These are called slice prefixes since they are used in the recursive blocking algorithm to compute the left-most slices during the recursion. Therefore, they must be prepended to rest of the slice - that was computed deeper in the recusion. + that was computed deeper in the recursion. These are returned as tuples to ensure that they can quickly be added to existing slice tuple without creating a new tuple everytime. @@ -841,9 +841,9 @@ def block(arrays): return _block_concatenate(arrays, list_ndim, result_ndim) -# Theses helper functions are mostly used for testing. +# These helper functions are mostly used for testing. # They allow us to write tests that directly call `_block_slicing` -# or `_block_concatenate` without blocking large arrays to forse the wisdom +# or `_block_concatenate` without blocking large arrays to force the wisdom # to trigger the desired path. def _block_setup(arrays): """ -- cgit v1.2.1