[Numpy-discussion] Some incompatibilities in numpy trunk
Sun Dec 6 07:53:58 CST 2009
I have a lot of code that has stopped working with my latest SVN pull to
* Some compiled code yields an error looking like (from memory):
"incorrect type 'numpy.ndarray'"
Rebuilding it is sufficient.
* I had some code doing:
where x is a numpy array. I had to replace it by:
* Finally, I had to following failure:
in array2vtk(num_array, vtk_array)
--> 298 result_array.SetVoidArray(z_flat, len(z_flat), 1)
TypeError: argument 1 must be string or read-only buffer, not
I can solve the problem using:
result_array.SetVoidArray(numpy.getbuffer(z_flat), len(z_flat), 1)
However, I am wondering: is this some incompatibility that has been
introduced by mistake? I find it a bit strange that a '.x' release
induces so much breakage, and I am afraid that it won't be popular
amongst our users.
More information about the NumPy-Discussion