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 stdin, line 1, in module IndexError: index 3 is out of bounds for axis 0: [-3,3) Ray Jones

[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

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 stdin, line 1, in module IndexError: index 3 is out of bounds for axis 0:

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 dave.hirschf...@gmail.com wrote: Paul Anton Letnes paul.anton.letnes at 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

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/ppahttps://launchpad.net/%7Escipy/+archive/ppa However, it's painfully outdated. Does anyone know of its status? Is it 'official'? Are there any plans in revitalizing it, possibly

[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 the

[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] possible enhancement to getitem?

2012-06-07 Thread Robert Kern
On Thu, Jun 7, 2012 at 7:55 PM, Neal Becker ndbeck...@gmail.com 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

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 li...@hilboll.de wrote: Hi, I just noticed that there's a PPA for NumPy/SciPy on Launchpad: https://launchpad.net/~scipy/+archive/ppahttps://launchpad.net/%7Escipy/+archive/ppa https://launchpad.net/%7Escipy/+archive/ppa However,