It works for me, which version of numpy are you using? What do you get when you type help(b.flatten)?
-=- Olivier Le 5 avril 2012 04:45, Chao YUE <[email protected]> a écrit : > Dear all, > > Is there a small bug in following? > > In [2]: b > Out[2]: > array([[ 0, 1, 2, 3, 4, 5], > [ 6, 7, 8, 9, 10, 11], > [12, 13, 14, 15, 16, 17], > [18, 19, 20, 21, 22, 23]]) > > > > In [3]: b.flatten(order='C') > --------------------------------------------------------------------------- > TypeError Traceback (most recent call last) > > /mnt/f/<ipython console> in <module>() > > TypeError: flatten() takes no keyword arguments > > order='F' gave tha same. > > cheers, > > chao > > -- > > *********************************************************************************** > Chao YUE > Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL) > UMR 1572 CEA-CNRS-UVSQ > Batiment 712 - Pe 119 > 91191 GIF Sur YVETTE Cedex > Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16 > > ************************************************************************************ > > > _______________________________________________ > NumPy-Discussion mailing list > [email protected] > http://mail.scipy.org/mailman/listinfo/numpy-discussion > >
_______________________________________________ NumPy-Discussion mailing list [email protected] http://mail.scipy.org/mailman/listinfo/numpy-discussion
