<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV><BR>Hi, Francesc:</DIV>
<DIV> </DIV>
<DIV>The codes do not work. Guess you forgot something there.</DIV>
<DIV> </DIV>
<DIV>Thanks.</DIV>
<DIV> </DIV>
<DIV>Wei Su</DIV>
<DIV><BR>--- On <B>Mon, 5/11/09, Francesc Alted <I><faltet@pytables.org></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="BORDER-LEFT: rgb(16,16,255) 2px solid; PADDING-LEFT: 5px; MARGIN-LEFT: 5px"><BR>From: Francesc Alted <faltet@pytables.org><BR>Subject: Re: [Numpy-discussion] List of arrays<BR>To: "Discussion of Numerical Python" <numpy-discussion@scipy.org><BR>Date: Monday, May 11, 2009, 10:40 AM<BR><BR>
<DIV class=plainMail>A Monday 11 May 2009, Nils Wagner escriguĂ©:<BR>> Hi all,<BR>><BR>> How can I convert a list of arrays into one array ?<BR>><BR>> Nils<BR>><BR>> >>> data<BR>><BR>> [array([  40. ,  285.6,   45. ,  285.3,   50. ,  285.1,<BR>>   55. ,  284.8]), array([  60. ,  284.5,   65. ,  282.8,<BR>>   70. ,  281.1,   75. ,  280. ]), array([  80. ,  278.8,<BR>>   85. ,  278..1,   90. ,  277.4,   95. ,  276.9]), array([<BR>> 100. ,  276.3,  105. ,  276.1,  110. ,  275.9,  115. ,<BR>>  275.7]), array([ 120. ,  275.5,  125. ,  275.2,  130. ,<BR>>  274.8,  135. ,  274.5]), array([ 140. ,  274.1,  145.
 ,<BR>>  273.7,  150. ,  273.2,  155. ,  272.7]), array([ 160. ,<BR>>  272.2,  165. ,  272.1,  170. ,  272. ,  175. ,  271.8]),<BR>> array([ 180. ,  271.6,  185. ,  271. ,  190. ,  270.3,<BR>>  195. ,  269.5]), array([ 200. ,  268.5,  205. ,  267.4,<BR>>  210. ,  266.1,  215. ,  263.5]), array([ 220. ,  260.1,<BR>>  225. ,  256.1,  230. ,  249.9,  235. ,  239.3]), array([<BR>> 238.7,  186.2,  240.,  160. ,  245. ,  119.7,  250. ,<BR>>  111.3])]<BR>><BR>> newdata=array([ 40. ,  285.6,   45. ,  285.3,   50. ,<BR>>  285.1, 55. ,  284.8, 60. ,  284.5,   65. ,  282.8, ...,<BR>>  111.3])<BR><BR>Try np.concatenate:<BR><BR>In [9]: a =
 np.arange(10)<BR><BR>In [10]: b = np.arange(10,20)<BR><BR>In [11]: np.concatenate(l)<BR>Out[11]:<BR>array([ 0,  1,  2,  3,  4,  5,  6,  7,  8,  9, 10, 11, 12, 13, 14, 15, <BR>16, 17, 18, 19])<BR><BR>Hope that helps,<BR><BR>-- <BR>Francesc Alted<BR><BR>"One would expect people to feel threatened by the 'giant<BR>brains or machines that think'.  In fact, the frightening<BR>computer becomes less frightening if it is used only to<BR>simulate a familiar noncomputer."<BR><BR>-- Edsger W. Dykstra<BR>   "On the cruelty of really teaching computer science"<BR>_______________________________________________<BR>Numpy-discussion mailing list<BR><A href="http://us.mc435.mail.yahoo.com/mc/compose?to=Numpy-discussion@scipy.org" ymailto="mailto:Numpy-discussion@scipy.org">Numpy-discussion@scipy.org</A><BR><A href="http://mail.scipy.org/mailman/listinfo/numpy-discussion"
 target=_blank>http://mail.scipy.org/mailman/listinfo/numpy-discussion</A><BR></DIV></BLOCKQUOTE></td></tr></table><br>