diff options
author | chiffa <ank@andreikucharavy.com> | 2016-02-27 17:38:28 -0500 |
---|---|---|
committer | chiffa <andrei.chiffa136@gmail.com> | 2016-02-27 21:24:25 -0500 |
commit | 3db32cb133e858e48596de29f5693633a7b4dcc4 (patch) | |
tree | 45ca8b75ddc2ec963a339be0c22a10b32be00cb2 /numpy/lib/arraypad.py | |
parent | 8f64328991fa32e02a45e15edebdff8c3245db5f (diff) | |
download | numpy-3db32cb133e858e48596de29f5693633a7b4dcc4.tar.gz |
BUG: constant padding expected wrong type in constant_values
Constant padding on 4 sides of a 2d array expected a numpy ndarray, and not a ndarray like (tuple, list, ...)
Detailed description is in the issue #7353
Diffstat (limited to 'numpy/lib/arraypad.py')
-rw-r--r-- | numpy/lib/arraypad.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/arraypad.py b/numpy/lib/arraypad.py index c30ef6bf5..3cfb1052a 100644 --- a/numpy/lib/arraypad.py +++ b/numpy/lib/arraypad.py @@ -1052,7 +1052,7 @@ def _normalize_shape(ndarray, shape, cast_to_int=True): arr = arr.repeat(2, axis=1) elif arr.shape[0] == ndims: # Input correctly formatted, pass it on as `arr` - arr = shape + pass else: fmt = "Unable to create correctly shaped tuple from %s" raise ValueError(fmt % (shape,)) |