|
From: Francesc A. <fa...@op...> - 2003-06-22 10:40:59
|
Ciao Ciro,
A Dissabte 21 Juny 2003 18:12, vareu escriure:
> Dear Francesc,
>
> first of all: THANKS for creating pytables! I went through the NetCDF,
> ZODB, bsddb3+cPickle ordeal myself, and eventually landed on HDF5 plus
> a home-grown Python interface. Now I plan to start using your pytables,
> and I'm tinkering with it a little.
>
> The present CVS version has a small problem in IsDescription.py,
> which is fixed by the patch below:
Ups, the CVS version requires the numarray CVS version + a modified version
of recarray.py that will be part of the next release of numarray. So,
basically the operatibility of the CVS version of PyTables is now
technically broken. Do you need some special feature present in CVS and not
in 0.5.1?
> Plus, on running the tests against the present CVS version of numarray
> ("0.6a3"), I get the error below for several test cases:
>
> ===========================================================================
>==== [...]
> File "/home/ciro/python-modules/tables/Table.py", line 304, in _open
> self.row = hdf5Extension.Row(self._v_buffer, self)
> File "/home/ciro/cvs/pytables/src/hdf5Extension.pyx", line 1403, in
> hdf5Extension.Row.__new__ self._fields = input._fields
> AttributeError: 'RecArray' object has no attribute '_fields'
> ===========================================================================
>====
>
> ...since indeed the records.RecArray class shipped with numarray
> has no _fields attribute, contrary to the older version in
> tables/recarray2.py.
Yeah, this is because I'm implementing the support for the upcoming recarray
in numarray. I'm working together with the numarray people in order to
implement the _fields attribute (which is already present in recarray2.py).
It's kind of cache dictionary to make the recarray field access faster. This
is very important to achieve good performance to access table objects in
PyTables.
I don't know when numarray people will decide to upload the ._fields
version, but I hope that to happen soon (maybe next week). Meanwhile, you
can download the previous version of PyTables in CVS (Wed Jun 11 10:48:46
2003, see the cvs checkout "-D" date option) which should work just fine
against current numarray CVS version.
In the future, I'll try to create a branch in CVS so as to avoid confusing
situations like this one.
Thanks for your interest in pytables,
--
Francesc Alted
|