[Numpy-discussion] recarray fun
Stéfan van der Walt
stefan@sun.ac...
Wed Apr 30 17:11:04 CDT 2008
2008/4/30 Christopher Barker <Chris.Barker@noaa.gov>:
> Stéfan van der Walt wrote:
> > That's the way, or just rgba_image.view(numpy.int32).
>
> ah -- interestingly, I tried:
>
> rgba_image.view(dtype=numpy.int32)
>
> and got:
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> TypeError: view() takes no keyword arguments
>
> Since it is optional, shouldn't it be keyword argument?
Thanks, fixed in r5115.
Cheers
Stéfan
More information about the Numpy-discussion
mailing list