Re: [Numpy-discussion] List of arrays failing index(), remove() etc

2014-05-07 Thread Eric Firing
On 2014/05/07 2:14 PM, mfm24 wrote: > I'm having a problem I haven't seen elsewhere (and apologies if it has > been answered before). > > I see the following behavior (copied verbatim from a python session): > > Python 2.7.4 (default, Apr 6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on > win32 >

[Numpy-discussion] List of arrays failing index(), remove() etc

2014-05-07 Thread mfm24
I'm having a problem I haven't seen elsewhere (and apologies if it has been answered before). I see the following behavior (copied verbatim from a python session): Python 2.7.4 (default, Apr 6 2013, 19:55:15) [MSC v.1500 64 bit (AMD64)] on win32Type "help", "copyright", "credits" or "license" for

Re: [Numpy-discussion] List of arrays

2009-05-12 Thread Francesc Alted
On Monday 11 May 2009 23:52:29 Christopher Barker wrote: > Wei Su wrote: > > The codes do not work. Guess you forgot something there. > > l wasn't defined: > > In [16]: a = np.arange(10) > > In [17]: b = np.arange(5) > > In [20]: l = [a,b] > > In [21]: l > Out[21]: [array([0, 1, 2, 3, 4, 5, 6, 7, 8

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Christopher Barker
Wei Su wrote: > The codes do not work. Guess you forgot something there. l wasn't defined: In [16]: a = np.arange(10) In [17]: b = np.arange(5) In [20]: l = [a,b] In [21]: l Out[21]: [array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]), array([0, 1, 2, 3, 4])] In [22]: np.concatenate(l) Out[22]: array([0,

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Wei Su
Hi, Francesc:   The codes do not work. Guess you forgot something there.   Thanks.   Wei Su --- On Mon, 5/11/09, Francesc Alted wrote: From: Francesc Alted Subject: Re: [Numpy-discussion] List of arrays To: "Discussion of Numerical Python" Date: Monday, May 11, 2009, 10:40 AM A

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Nils Wagner
On Mon, 11 May 2009 06:54:45 -0400 Alan G Isaac wrote: > On 5/11/2009 6:28 AM Nils Wagner apparently wrote: >> How can I convert a list of arrays into one array ? > > Do you mean one long array, so that ``concatenate`` > is appropriate, or a 2d array, in which case you > can just use ``array``.

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Alan G Isaac
On 5/11/2009 6:28 AM Nils Wagner apparently wrote: > How can I convert a list of arrays into one array ? Do you mean one long array, so that ``concatenate`` is appropriate, or a 2d array, in which case you can just use ``array``. But your example looks like you should preallocate the larger array

Re: [Numpy-discussion] List of arrays

2009-05-11 Thread Francesc Alted
A Monday 11 May 2009, Nils Wagner escrigué: > Hi all, > > How can I convert a list of arrays into one array ? > > Nils > > >>> data > > [array([ 40. , 285.6, 45. , 285.3, 50. , 285.1, > 55. , 284.8]), array([ 60. , 284.5, 65. , 282.8, > 70. , 281.1, 75. , 280. ]), array([ 80.

[Numpy-discussion] List of arrays

2009-05-11 Thread Nils Wagner
Hi all, How can I convert a list of arrays into one array ? Nils >>> data [array([ 40. , 285.6, 45. , 285.3, 50. , 285.1, 55. , 284.8]), array([ 60. , 284.5, 65. , 282.8, 70. , 281.1, 75. , 280. ]), array([ 80. , 278.8, 85. , 278.1, 90. , 277.4, 95. , 276.9]