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=table.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 
necessary to declare the line:

    _v_flavor   = "numpy"

in the description of your table (i.e before creating it on disk). Setting 
the '_v_favor' alone is not enough.

HTH,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to