From: Francesc A. <fa...@ca...> - 2006-08-18 05:57:42
|
A Dijous 17 Agost 2006 09:00, Torgil Svensson va escriure: > Here's an possible bug where the col() function doesn't seem to > respect the _v_flavor attribute. > > >>> type(table) > > <class 'tables.Table.Table'> > > >>> table._v_flavor > > 'numpy' > > >>> t=3Dtable.col('t') > >>> type(t) > > <class 'numarray.numarraycore.NumArray'> > Uh... this works for me: >>> f.root.events.table.flavor 'numpy' >>> type(f.root.events.table.col('mass')) <type 'numpy.ndarray'> >>> tables.__version__ '1.3.2' How did you build the table with flavor 'numpy'?. Remember that it is=20 necessary to declare the line: _v_flavor =3D "numpy" in the description of your table (i.e before creating it on disk). Setting= =20 the '_v_favor' alone is not enough. HTH, =2D-=20 >0,0< Francesc Altet =A0 =A0 http://www.carabos.com/ V V C=E1rabos Coop. V. =A0=A0Enjoy Data "-" |