Hi,

Sorry this might seem a little noobish, but I'm just starting out with pytables.

I notice that row.fetch_all_fields() returns a Numpy void scalar type.
Is it possible for it to return a numpy object with at least the
actual python/numpy sub-types of the fields i.e. int, float, etc. Also
the Row object seems to be missing the same type information. Calling
type() on either results in a "TypeError: 'str' object is not
callable". Is this intensional? Is there another way to obtain the
type information dynamically(apart from using table.coldtypes or
table.coltypes) as I will not necessarily know the types of the
various fields I read from an hdf5 file. I could use ObjectAtom, but
I'm trying to avoid the overhead. I just want to make sure I haven't
skipped anything important.

Basically, I want to convert the row object to a python
object(deserialize) with typed properties automatically and
vice-versa(serialize). I know python is ducktyped, but I need the type
information as I'm hoping speed up certain bits of the computation
using cython or pyrex.

Chirag

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to