8 Aug 2012 22:09
possible bug in assignment to complex array
Mark Bakker <markbak <at> gmail.com>
2012-08-08 20:09:45 GMT
2012-08-08 20:09:45 GMT
Dear List,
I think there is a problem with assigning a 1D complex array of length one to a position in another complex array.
Example:
a = ones(1,'D')
b = ones(1,'D')
a[0] = b
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-37-0c4fc6d780e3> in <module>()
----> 1 a[0] = b
TypeError: can't convert complex to float
This works correctly when a and b are real arrays:
a = ones(1)
b = ones(1)
a[0] = b
Bug or feature?
Thanks,
Mark
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion <at> scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
RSS Feed