diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-12-02 13:58:52 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-12-02 13:58:52 -0700 |
commit | 1a097894a6da019a1bc728f96eb40b33a584d05d (patch) | |
tree | 2d306e4bc11026697fe647047a8e8b717d28891c /numpy/core/fromnumeric.py | |
parent | 45ff55634c0ddd44bd07141b3ffb6c4c5f08118c (diff) | |
parent | 927e8809cb566722b1bd0b15dca9f030f3cd29b9 (diff) | |
download | numpy-1a097894a6da019a1bc728f96eb40b33a584d05d.tar.gz |
Merge pull request #6758 from seberg/resize-empty
BUG: resizing empty array with complex dtype failed
Diffstat (limited to 'numpy/core/fromnumeric.py')
-rw-r--r-- | numpy/core/fromnumeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/fromnumeric.py b/numpy/core/fromnumeric.py index 0fc572cb6..197513294 100644 --- a/numpy/core/fromnumeric.py +++ b/numpy/core/fromnumeric.py @@ -1134,7 +1134,7 @@ def resize(a, new_shape): a = ravel(a) Na = len(a) if not Na: - return mu.zeros(new_shape, a.dtype.char) + return mu.zeros(new_shape, a.dtype) total_size = um.multiply.reduce(new_shape) n_copies = int(total_size / Na) extra = total_size % Na |