[Numpy-discussion] numarray, fromfile
jmiller at stsci.edu
Mon Aug 9 04:00:05 EDT 2004
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.
On Sun, 2004-08-08 at 07:57, René Bastian wrote:
> 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,))
More information about the NumPy-Discussion