A Dimarts 05 Setembre 2006 15:24, vàreu escriure:
> Okay. Thank you for the efforts so far.
>
> Are you going to integrate the dtype-system into pytables? Will this
> make the current descriptions reundant, will it live side-by side or
> something else?

Good question indeed and, curiously enough, Ivan and me were discussing this 
while you wrote your message. Well, to start with, we don't plan any major 
change in current descriptions in PyTables 1.x series. In PyTables Pro (and 
2.x) series, we have to think seriously about making dtype *the* description 
type for all tables. dtype descriptor in NumPy seems comprehensive enough to 
satisfy all the basic needs of PyTables, except for special datatypes 
like 'Time' and 'Enum'. But, most probably, there will be a dtype descriptor 
attached to each object in PyTables (at least, I'm all for it).

>
> One thing that I tend o do quite often is to iterate a number of rows
> and select a set of columns which meet some criterias on another set
> of columns; the result is delivered as an numpy recarray (or a class
> that inherits from it). It would be nice if I can build the resulting
> dtype directly from the column descriptions. Is there an easy way of
> doing this now?

Yes. You can do this from PyTables 1.2 on by doing:

        mydtype = numpy.dtype(mytable.description._v_nestedDescr)

See the ``Description`` class in Users' Guide for more info on this.

Mmm, perhaps this would deserve an entry in FAQ (or an explanation in 
manual)...

Cheers,

-- 
>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