Re: [Numpy-discussion] Runtime error in numpy.polyfit

2010-05-19 Thread William Carithers
t, it was packaged with the OSX 10.6 upgrade. I had to download the tarballs and install from source. Cheers, Bill On 5/19/10 1:35 PM, "josef.p...@gmail.com" wrote: > On Wed, May 19, 2010 at 4:24 PM, William Carithers > wrote: >> Hi Josef, >> >> I did the sam

Re: [Numpy-discussion] Runtime error in numpy.polyfit

2010-05-19 Thread William Carithers
em has to do with data types? In the original code arcImage is integer data so the avalues array is constructed from avalues = n.log(n.array([...list of integers...])) Should I be doing some kind of casting first? Thanks, Bill On 5/19/10 1:09 PM, "josef.p...@gmail.com" wrote: &

Re: [Numpy-discussion] Runtime error in numpy.polyfit

2010-05-19 Thread William Carithers
olyfit? >> >> William: try using numpy.polynomial.polyfit instead, see if that works. It says ypoly = n.polynomial.polyfit(yvalues, avalues, 2) AttributeError: 'module' object has no attribute 'polynomial' Is this because I'm using a relatively old (numpy-1.2.1) version

[Numpy-discussion] Runtime error in numpy.polyfit

2010-05-19 Thread William Carithers
I'm trying to do a simple 2nd degree polynomial fit to two arrays of 5 entries. I get a runtime error: RuntimeError: more argument specifiers than keyword list entries (remaining format:'|:calc_lwork.gelss') in the lstsq module inside numpy.polyfit. Here's the code snippet: def findPeak(self, yde