numarray bug or my?

Simon Burton simonb at NOTTHISBIT.webone.com.au
Mon Feb 23 18:01:37 EST 2004


On Mon, 23 Feb 2004 23:14:03 +0100, Marco Bubke wrote:

...
> Ok, its in Pyrex and has a bug in
> flat_view = array_to_int(viewport),
> but I don't know why. If I change the code to flat_view =
> array_to_double(viewport) its runnig without glitches. I really dont
> understand it.
> 
> Thx
> 
> Marco

Yes, me too. I wasn't sure if NA_InputArray was supposed
to be able to handle type conversions, so I used the python
method:

array = array.astype(numarray.Int32)

and then used NA_InputArray on that.

Simon.




More information about the Python-list mailing list