Peter Creasey
2015-11-24 19:42:19 UTC
Hi,
I just upgraded my numpy and started to received a TypeError from one of my
codes that relied on the old, less strict, casting behaviour. The error
message, however, left me scratching my head when trying to debug something
dtype('uint64') with casting rule 'same_kind'
Where does the 'float64' come from?!?!
Peter
PS Thanks for all the great work guys, numpy is a fantastic tool and has
been a lot of help to me over the years!
I just upgraded my numpy and started to received a TypeError from one of my
codes that relied on the old, less strict, casting behaviour. The error
message, however, left me scratching my head when trying to debug something
a = array([0],dtype=uint64)
a += array([1],dtype=int64)
TypeError: Cannot cast ufunc add output from dtype('float64') toa += array([1],dtype=int64)
dtype('uint64') with casting rule 'same_kind'
Where does the 'float64' come from?!?!
Peter
PS Thanks for all the great work guys, numpy is a fantastic tool and has
been a lot of help to me over the years!