Re: [Numpy-discussion] [SciPy-Dev] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread David Cournapeau
On Thu, Jun 7, 2012 at 5:24 PM, Andreas Hilboll wrote: > Hi, > > I just noticed that there's a PPA for NumPy/SciPy on Launchpad: > > https://launchpad.net/~scipy/+archive/ppa > > However, it's painfully outdated. Does anyone know of its status? Is it > 'official'? Are there any plans in revital

Re: [Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Ralf Gommers
On Thu, Jun 7, 2012 at 1:33 PM, Andreas Hilboll wrote: > >> Hi, > >> > >> I just noticed that there's a PPA for NumPy/SciPy on Launchpad: > >> > >> > >> https://launchpad.net/~scipy/+archive/ppa > > >> >

Re: [Numpy-discussion] possible enhancement to getitem?

2012-06-07 Thread Robert Kern
On Thu, Jun 7, 2012 at 7:55 PM, Neal Becker wrote: > In [3]: u = np.arange(10) > > In [4]: u > Out[4]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) > > In [5]: u[-2:] > Out[5]: array([8, 9]) > > In [6]: u[-2:2] > Out[6]: array([], dtype=int64) > > I would argue for consistency it would be desirable for t

[Numpy-discussion] possible enhancement to getitem?

2012-06-07 Thread Neal Becker
In [3]: u = np.arange(10) In [4]: u Out[4]: array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) In [5]: u[-2:] Out[5]: array([8, 9]) In [6]: u[-2:2] Out[6]: array([], dtype=int64) I would argue for consistency it would be desirable for this to return [8, 9, 0, 1] __

Re: [Numpy-discussion] Are "min", "max" documented for scalars?

2012-06-07 Thread Robert Kern
On Thu, Jun 7, 2012 at 2:25 PM, Edward C. Jones wrote: > Silly mistakes. > > If a and b are Python ints, Python floats, or non-complex > numpy.number's,  "max" returns, unchanged, the largrt of the two > objects.  There is no coercion to a common type.  This useful behavior > needs to be documente

Re: [Numpy-discussion] better error message possible?

2012-06-07 Thread Travis Vaught
On Jun 7, 2012, at 4:32 AM, Paul Anton Letnes wrote: > > On 7. juni 2012, at 10:30, Thouis (Ray) Jones wrote: > >> I've opened a PR at https://github.com/numpy/numpy/pull/296 for discussion. >> >> A typical result >> > np.zeros((3,3))[[1,2,3]] >> Traceback (most recent call last): >> File

Re: [Numpy-discussion] Are "min", "max" documented for scalars?

2012-06-07 Thread Edward C. Jones
Silly mistakes. If a and b are Python ints, Python floats, or non-complex numpy.number's, "max" returns, unchanged, the largrt of the two objects. There is no coercion to a common type. This useful behavior needs to be documented. ___ NumPy-Discus

[Numpy-discussion] reshape/resize and array extension

2012-06-07 Thread Pierre Barthelemy
Hi everyone, I am making a program to realize some "live" data analysis. I progressively take the data, and write them in a file as a single column. If i take 2D data, this would give: data= X Y Z 0 0 1 1 0 2 2 0 3 0 1 1 1 1 2 2 1 3 0 2 1 1 2 1 2 2 1 To plot these data, i need first to reshape th

Re: [Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Andreas Hilboll
>> Hi, >> >> I just noticed that there's a PPA for NumPy/SciPy on Launchpad: >> >> >> https://launchpad.net/~scipy/+archive/ppa >> >> However, it's painfully outdated. Does anyone know of its status? Is it >> 'official'? Are there any plans in revital

Re: [Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Chao YUE
Hi, do you try to install from this PPA? I am using ubuntu 11.04, it's not difficult possibly to install by pip. but this is the only thing I know. chao 2012/6/7 Andreas Hilboll > Hi, > > I just noticed that there's a PPA for NumPy/SciPy on Launchpad: > > > https://launchpad.net/~scipy/+arc

Re: [Numpy-discussion] better error message possible?

2012-06-07 Thread Thouis (Ray) Jones
On Thu, Jun 7, 2012 at 11:44 AM, Dave Hirschfeld wrote: > Paul Anton Letnes gmail.com> writes: > >> I would prefer: >> IndexError: index 3 is out of bounds for axis 0: [-3,2] >> as I find the 3) notation a bit weird - after all, indices are not floats, so > 2.999 or 2.3 doesn't make sense as >> a

Re: [Numpy-discussion] better error message possible?

2012-06-07 Thread Dave Hirschfeld
Paul Anton Letnes gmail.com> writes: > I would prefer: > IndexError: index 3 is out of bounds for axis 0: [-3,2] > as I find the 3) notation a bit weird - after all, indices are not floats, so 2.999 or 2.3 doesn't make sense as > an index. > > An alternative is to not refer to negative indices

Re: [Numpy-discussion] better error message possible?

2012-06-07 Thread Paul Anton Letnes
On 7. juni 2012, at 10:30, Thouis (Ray) Jones wrote: > I've opened a PR at https://github.com/numpy/numpy/pull/296 for discussion. > > A typical result > np.zeros((3,3))[[1,2,3]] > Traceback (most recent call last): > File "", line 1, in > IndexError: index 3 is out of bounds for axis 0:

[Numpy-discussion] Ubuntu PPA for NumPy / SciPy / ...

2012-06-07 Thread Andreas Hilboll
Hi, I just noticed that there's a PPA for NumPy/SciPy on Launchpad: https://launchpad.net/~scipy/+archive/ppa However, it's painfully outdated. Does anyone know of its status? Is it 'official'? Are there any plans in revitalizing it, possibly with adding other projects from the "scipy univers

Re: [Numpy-discussion] better error message possible?

2012-06-07 Thread Thouis (Ray) Jones
I've opened a PR at https://github.com/numpy/numpy/pull/296 for discussion. A typical result >>> np.zeros((3,3))[[1,2,3]] Traceback (most recent call last): File "", line 1, in IndexError: index 3 is out of bounds for axis 0: [-3,3) Ray Jones ___ Nu