logo       

Re: numarray, fromfile: msg#00013

python.numeric.general

Subject: Re: numarray, fromfile

It's hard to tell without knowing the value of d, but my guess is that
sometimes d is an integer and sometimes it's a float, and that perhaps
the "it works if (d,) is used" is a red herring. Using a float for d
definitely produces the exception you saw.

Regards,
Todd

On Sun, 2004-08-08 at 07:57, René Bastian wrote:
> Hello,
>
> sometimes (not always) :
>
> w=NA.fromfile(self.f, NA.Float64, d)
>
> delivers an error message :
>
> TypeError : NA_intSequenceProduct: object is not a sequence
>
> Why not always ?
>
> There is no error if one writes
>
> w=NA.fromfile(self.f, NA.Float64, (d,))
--



-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise