numarray bug or my?

Simon Burton simonb at
Tue Feb 24 00:01:37 CET 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

array = array.astype(numarray.Int32)

and then used NA_InputArray on that.


More information about the Python-list mailing list