|
Re: numarray, fromfile: msg#00013python.numeric.general
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> |
|---|---|---|
| Previous by Date: | numarray, fromfile: 00013, René Bastian |
|---|---|
| Next by Date: | Fw: lozenge: 00013, Karl Donaldson |
| Previous by Thread: | numarray, fromfilei: 00013, René Bastian |
| Next by Thread: | Fw: lozenge: 00013, Karl Donaldson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |