[Numpy-discussion] A bug in numarray?
Todd Miller
jmiller at stsci.edu
Thu Sep 22 09:43:34 EDT 2005
Thanks Nadav. This is fixed in CVS.
Regards,
Todd
Nadav Horesh wrote:
>It seems that the tostring method fails on rank 0 arrays:
>
>a = N.array(-4)
>
>
>>>>a
>>>>
>>>>
>array(-4)
>
>
>>>>a.tostring()
>>>>
>>>>
>
>Traceback (most recent call last):
> File "<pyshell#18>", line 1, in -toplevel-
> a.tostring()
> File "/usr/local/lib/python2.4/site-packages/numarray/generic.py",
>line 746, in tostring
> self._strides, self._itemsize)
>MemoryError
>
>
>>>>N.__version__
>>>>
>>>>
>'1.4.0'
>
>
> Nadav.
>
>
>
More information about the NumPy-Discussion
mailing list