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
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
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
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:
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
(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)
>>>