diff options
| author | Charles Harris <charlesr.harris@gmail.com> | 2018-02-16 10:27:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-16 10:27:21 -0700 |
| commit | 2f9d3c0796951af6d962795671135da93bbfe1c1 (patch) | |
| tree | 5080a338024a8d065d1d6697a9034ce2c99f59bb /numpy/core | |
| parent | 5c5a215fa1101479ae9b8d127be32679c9f3f105 (diff) | |
| parent | 6512040a6506f0fe501e4398b1a6375a80829b40 (diff) | |
| download | numpy-2f9d3c0796951af6d962795671135da93bbfe1c1.tar.gz | |
Merge pull request #10604 from luzpaz/misc-typos
MAINT: Fix Misc. typos
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/einsumfunc.py | 2 | ||||
| -rw-r--r-- | numpy/core/tests/test_arrayprint.py | 2 | ||||
| -rw-r--r-- | numpy/core/tests/test_multiarray.py | 2 | ||||
| -rw-r--r-- | numpy/core/tests/test_scalar_ctors.py | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/numpy/core/einsumfunc.py b/numpy/core/einsumfunc.py index 1190f063e..8cd6eae12 100644 --- a/numpy/core/einsumfunc.py +++ b/numpy/core/einsumfunc.py @@ -596,7 +596,7 @@ def einsum_path(*operands, **kwargs): -------- We can begin with a chain dot example. In this case, it is optimal to - contract the ``b`` and ``c`` tensors first as reprsented by the first + contract the ``b`` and ``c`` tensors first as represented by the first element of the path ``(1, 2)``. The resulting tensor is added to the end of the contraction and the remaining contraction ``(0, 1)`` is then completed. diff --git a/numpy/core/tests/test_arrayprint.py b/numpy/core/tests/test_arrayprint.py index 600a566db..d4c565c57 100644 --- a/numpy/core/tests/test_arrayprint.py +++ b/numpy/core/tests/test_arrayprint.py @@ -809,7 +809,7 @@ class TestContextManager(object): assert_equal(np.get_printoptions(), opts) def test_ctx_mgr_exceptions(self): - # test that print options are restored even if an exeption is raised + # test that print options are restored even if an exception is raised opts = np.get_printoptions() try: with np.printoptions(precision=2, linewidth=11): diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py index 3b92a0610..661561ab3 100644 --- a/numpy/core/tests/test_multiarray.py +++ b/numpy/core/tests/test_multiarray.py @@ -3341,7 +3341,7 @@ class TestTemporaryElide(object): # def incref_elide_l(d): # return l[4] + l[4] # PyNumber_Add without increasing refcount from numpy.core.multiarray_tests import incref_elide_l - # padding with 1 makes sure the object on the stack is not overwriten + # padding with 1 makes sure the object on the stack is not overwritten l = [1, 1, 1, 1, np.ones(100000)] res = incref_elide_l(l) # the return original should not be changed to an inplace operation diff --git a/numpy/core/tests/test_scalar_ctors.py b/numpy/core/tests/test_scalar_ctors.py index 13de36260..e2470779b 100644 --- a/numpy/core/tests/test_scalar_ctors.py +++ b/numpy/core/tests/test_scalar_ctors.py @@ -1,5 +1,5 @@ """ -Test the scalar contructors, which also do type-coercion +Test the scalar constructors, which also do type-coercion """ from __future__ import division, absolute_import, print_function |
