[Numpy-discussion] ValueError: low level cast function is for unequal type numbers

Andrew Collette andrew.collette@gmail....
Thu Dec 13 15:57:23 CST 2012


Hi,

> the following code using np.object_ data types works with numpy 1.5.1
> but fails with 1.6.2. Is this intended or a regression? Other data
> types, np.float64 for example, seem to work.

I am also seeing this problem; there was a change to how string types
are handled in h5py 2.1.0 which triggers this bug.  It's a serious
inconvenience, as people can't do e.g. np.copy(<hdf5 dataset object>)
any more.

> These downstream issues could be related:
>
> http://code.google.com/p/h5py/issues/detail?id=217

Yes, this seems to be the cause of issue 217.

Andrew


More information about the NumPy-Discussion mailing list