[Numpy-discussion] Bug in numarray<->numpy interaction

Charles R Harris charlesr.harris at gmail.com
Sun Dec 24 12:20:18 CST 2006


On 12/24/06, Norbert Nemec <Norbert.Nemec.list at gmx.de> wrote:
>
> The following snippet demonstrates a problem in the interaction of
> numarray 1.5.2 with numpy 1.0.1 (and older versions):
>
> -------------------
> #!/usr/bin/env python
>
> import numarray, numpy
>
> na = numarray.array(0.)
> np = numpy.array(0.)
>
> na[...] = np


As a work around, do

In [5]: na[...] = int(np)

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061224/79cb5672/attachment.html 


More information about the Numpy-discussion mailing list