Re: [Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-17 Thread Tony Yu
Date: Fri, 17 Jul 2009 13:27:25 -0400 From: Ralf Gommers Subject: Re: [Numpy-discussion] Using interpolate with zero-rank array raises error [snip] If it works with scalars it should work with 0-D arrays I think. So you should probably open a ticket and attach your patch. Thanks

Re: [Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-17 Thread Ralf Gommers
On Fri, Jul 17, 2009 at 9:51 AM, Tony Yu wrote: > > Date: Thu, 16 Jul 2009 23:37:58 -0400 > From: Ralf Gommers > > It seems to me that there are quite a few other functions that will give > errors with 0-D arrays (apply_along/over_axis are two that come to mind). > There is nothing to interpolat

Re: [Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-17 Thread Tony Yu
Date: Thu, 16 Jul 2009 23:37:58 -0400 From: Ralf Gommers It seems to me that there are quite a few other functions that will give errors with 0-D arrays (apply_along/over_axis are two that come to mind). There is nothing to interpolate so I'm not surprised. Hmm, I don't quite understand

Re: [Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-16 Thread Ralf Gommers
lf > > Thanks, > -Tony > > > Date: Mon, 13 Jul 2009 13:50:50 -0400 > > From: Tony Yu > > Subject: [Numpy-discussion] Using interpolate with zero-rank array > > raises error > > To: Discussion of Numerical Python > > Message-ID:

Re: [Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-16 Thread Tony Yu
Sorry, I don't know if its proper mailing-list-etiquette to bump my own post... Are there any comments on whether this interp error is expected behavior? Thanks, -Tony > Date: Mon, 13 Jul 2009 13:50:50 -0400 > From: Tony Yu > Subject: [Numpy-discussion] Using interpolate

[Numpy-discussion] Using interpolate with zero-rank array raises error

2009-07-13 Thread Tony Yu
(Sorry if this is a duplicate; I think sent this from the wrong email the first time) When using interpolate with a zero-rank array, I get "ValueError: object of too small depth for desired array". The following code reproduces this issue >>> import numpy as np >>> x0 = np.array(0.1) >>>