Re: [Numpy-discussion] Dealing with roundoff error

2010-03-28 Thread Pauli Virtanen
Mike Sarahan wrote: However, even linspace shows roundoff error: a=np.linspace(0.0,10.0,endpoint=False) b=np.linspace(0.1,10.1,endpoint=False) np.sum(a[1:]==b[:-1])  # Gives me 72, no 100 Are you sure equally spaced floating point numbers having this property even exist? 0.1 does not have a

Re: [Numpy-discussion] numpy.trapz() doesn't respect subclass

2010-03-28 Thread Darren Dale
On Sat, Mar 27, 2010 at 10:23 PM, josef.p...@gmail.com wrote: subclasses of ndarray, like masked_arrays and quantities, and classes that delegate to array calculations, like pandas, can redefine anything. So there is not much that can be relied on if any subclass is allowed to be used inside

Re: [Numpy-discussion] Dealing with roundoff error

2010-03-28 Thread Anne Archibald
On 27 March 2010 19:38, Mike Sarahan msara...@gmail.com wrote: Hi all, I have run into some roundoff problems trying to line up some experimental spectra.  The x coordinates are given in intervals of 0.1 units.  I read the data in from a text file using np.loadtxt(). I think Robert's post

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Anne Archibald
On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All,    I have an interpolation problem and I am having some difficulties in tackling it. I hope I can explain myself clearly enough. Basically, I have a whole bunch of 3D fluid flow simulations (close to 1000), and

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
On 28 March 2010 08:26, Anne Archibald wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All,    I have an interpolation problem and I am having some difficulties in tackling it. I hope I can explain myself clearly enough. Basically, I have a whole bunch of 3D

Re: [Numpy-discussion] ufunc improvements [Was: Warnings in numpy.ma.test()]

2010-03-28 Thread Darren Dale
I'd like to use this thread to discuss possible improvements to generalize numpys functions. Sorry for double posting, but we will have a hard time keeping track of discussion about how to improve functions to deal with subclasses if they are spread across threads talking about warnings in masked

Re: [Numpy-discussion] Why this Difference in Importing NumPy 1.2 vs 1.4?

2010-03-28 Thread PHobson
If your on windows, you can probably get rid of it through the Add/Remove Programs portion of the Conrol Panel. -- Paul Hobson Senior Staff Engineer Geosyntec Consultants Portland, OR On Mar 26, 2010, at 8:09 PM, Wayne Watson sierra_mtnv...@sbcglobal.netmailto:sierra_mtnv...@sbcglobal.net

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Robert Kern
On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All,    I have an interpolation problem and I am having some difficulties in tackling it. I hope I can explain myself clearly enough.

[Numpy-discussion] Applying formula to all in an array which has value from previous

2010-03-28 Thread Vishal Rana
Hi, For a numpy array: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) I do some calculation with 0, 1... and get a value = 2.5, now use this value to do the repeat the same calculation with next element for example... 2.5, 2 and get a value = 3.1 3.1, 3 and get a value = 4.2 4.2, 4 and get a value = 5.1

Re: [Numpy-discussion] Dealing with roundoff error

2010-03-28 Thread Friedrich Romstedt
2010/3/28 Mike Sarahan msara...@gmail.com: I have run into some roundoff problems trying to line up some experimental spectra.  The x coordinates are given in intervals of 0.1 units.  I read the data in from a text file using np.loadtxt(). I don't know your problem well enough, so the

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All,    I have an interpolation problem and I am having some difficulties in tackling

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Pierre GM
On Mar 28, 2010, at 4:47 PM, Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All, I have an interpolation

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread josef . pktd
On Sun, Mar 28, 2010 at 4:47 PM, Andrea Gavana andrea.gav...@gmail.com wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All,    

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
Hi All, On 28 March 2010 22:14, Pierre GM wrote: On Mar 28, 2010, at 4:47 PM, Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Brennan Williams
Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi All, I have an interpolation problem and I

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
Hi All, On 28 March 2010 22:14, Pierre GM wrote: On Mar 28, 2010, at 4:47 PM, Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
HI Brennan, On 28 March 2010 22:50, Brennan Williams wrote: Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27 March 2010 20:24, Andrea Gavana andrea.gav...@gmail.com wrote: Hi

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Brennan Williams
Andrea Gavana wrote: Hi All, On 28 March 2010 22:14, Pierre GM wrote: On Mar 28, 2010, at 4:47 PM, Andrea Gavana wrote: HI All, On 28 March 2010 19:22, Robert Kern wrote: On Sun, Mar 28, 2010 at 03:26, Anne Archibald peridot.face...@gmail.com wrote: On 27

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Friedrich Romstedt
2010/3/28 Andrea Gavana andrea.gav...@gmail.com: Example 1 # o2 and o3 are the number of production wells, split into 2 # different categories # inj is the number of injection wells # fomts is the final oil recovery rbf = Rbf(oilPlateau, gasPlateau, gasInjPlateau, o2, o3, inj, fomts) op

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
Hi Brennan All, On 28 March 2010 23:36, Brennan Williams wrote: Andrea Gavana wrote: Let's see a couple of practical examples (I can share the data if someone is interested). Definitely interested in helping solve this one so feel free to email the data (obviously not 1,000 Eclipse smspec

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
Hi Friedrich All, On 28 March 2010 23:51, Friedrich Romstedt wrote: 2010/3/28 Andrea Gavana andrea.gav...@gmail.com: Example 1 # o2 and o3 are the number of production wells, split into 2 # different categories # inj is the number of injection wells # fomts is the final oil recovery rbf

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Robert Kern
On Sun, Mar 28, 2010 at 18:30, Andrea Gavana andrea.gav...@gmail.com wrote: Hi Friedrich All, On 28 March 2010 23:51, Friedrich Romstedt wrote: 2010/3/28 Andrea Gavana andrea.gav...@gmail.com: Example 1 # o2 and o3 are the number of production wells, split into 2 # different categories #

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Brennan Williams
Andrea Gavana wrote: Hi Friedrich All, On 28 March 2010 23:51, Friedrich Romstedt wrote: 2010/3/28 Andrea Gavana andrea.gav...@gmail.com: Example 1 # o2 and o3 are the number of production wells, split into 2 # different categories # inj is the number of injection wells #

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Andrea Gavana
On 29 March 2010 00:34, Robert Kern wrote: On Sun, Mar 28, 2010 at 18:30, Andrea Gavana andrea.gav...@gmail.com wrote: Hi Friedrich All, On 28 March 2010 23:51, Friedrich Romstedt wrote: 2010/3/28 Andrea Gavana andrea.gav...@gmail.com: Example 1 # o2 and o3 are the number of production

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 42, Issue 85

2010-03-28 Thread Kevin Dunn
Date: Sun, 28 Mar 2010 00:24:01 + From: Andrea Gavana andrea.gav...@gmail.com Subject: [Numpy-discussion] Interpolation question To: Discussion of Numerical Python numpy-discussion@scipy.org Message-ID:        d5ff27201003271724o6c82ec75v225d819c84140...@mail.gmail.com Content-Type:

Re: [Numpy-discussion] NumPy-Discussion Digest, Vol 42, Issue 85

2010-03-28 Thread Kevin Dunn
On Sun, Mar 28, 2010 at 20:12, Kevin Dunn kgd...@gmail.com wrote: Date: Sun, 28 Mar 2010 00:24:01 + From: Andrea Gavana andrea.gav...@gmail.com Subject: [Numpy-discussion] Interpolation question To: Discussion of Numerical Python numpy-discussion@scipy.org Message-ID:        

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Brennan Williams
Andrea Gavana wrote: On 29 March 2010 00:34, Robert Kern wrote: On Sun, Mar 28, 2010 at 18:30, Andrea Gavana andrea.gav...@gmail.com wrote: Hi Friedrich All, On 28 March 2010 23:51, Friedrich Romstedt wrote: 2010/3/28 Andrea Gavana andrea.gav...@gmail.com:

Re: [Numpy-discussion] Interpolation question

2010-03-28 Thread Kevin Dunn
Message: 5 Date: Sun, 28 Mar 2010 00:24:01 + From: Andrea Gavana andrea.gav...@gmail.com Subject: [Numpy-discussion] Interpolation question To: Discussion of Numerical Python numpy-discussion@scipy.org Message-ID:        d5ff27201003271724o6c82ec75v225d819c84140...@mail.gmail.com