[Numpy-discussion] Don't understand this error

David Goldsmith d.l.goldsmith at gmail.com
Tue Jul 27 17:59:55 EDT 2010


res = np.fromfunction(make_res, (nx, ny))
   File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1538, in
fromfunction
args = indices(shape, dtype=dtype)
   File "C:\Python26\lib\site-packages\numpy\core\numeric.py", line 1480, in
indices
tmp.shape = (1,)*i + (dim,)+(1,)*(N-i-1)
ValueError: total size of new array must be unchanged
Script terminated

If it's a new array, how can it already have a size that can't be changed?
What does this error really mean?

DG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100727/7a636af4/attachment.html>


More information about the NumPy-Discussion mailing list