[NUMPY] "ValueError: total size of new array must be unchanged" just on Windows

Paolo Zaffino zaffino.p at gmail.com
Wed Oct 12 17:06:47 EDT 2011


I wrote a function thaht works on a 3D matrix.
As first thing I have an array and I want reshape it into a 3D matrix (for
further manipulations).
For this reason I wrote in a row:

matrix=matrix.reshape(a, b, c).T

It work fine on GNU/Linux and Mac OS but not on Windows.
In Windows I get this error:

matrix=matrix.reshape(a, b, c).T

ValueError: total size of new array must be unchanged

Thank you.



2011/10/11 David Robinow <drobinow at gmail.com>

> 2011/10/11 Paolo Zaffino <zaffino.p at gmail.com>:
> > Nobody can help me?
>  Nope, not unless you post some code. Your problem description is too
> vague.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20111012/f28a795a/attachment-0001.html>


More information about the Python-list mailing list