> Hi Naveen,
>
> Adding new columns to an existing table is a feature that PyTables
> doesn't support. However, the topic has been discussed here several
> times and it seems that most people find it good enough to define the
> new "columns" as separate ``EArray`` nodes (relating values by row
> number). It needs some manual synchronisation but it doesn't seem too
> complex.
>
> Hope that helps,
>
Is this similar to adding additional tables to a relational database that
are indexed by a secondary key into the primary table? Do you have any
simple examples of building this kind of data structure in the examples
folder or on the tutorial? I guess I could see having a primary table that
describes each simulation, and then a separate table for the results
of each analysis indexed to the primary table. How would i "join" these
results? Thanks.
Also, I have been trying without success to compile the latest pytables
(1.3.3) with a statically compiled version of hdf5 (1.6.5), but every time
I try to create a table I get a series of HDF-DIAG errors stemming from
the createTable. Here is an example (testtables.py):
from tables import *
class Particle(IsDescription):
ADCcount = Col("Int16", 1, 0) # signed short integer
name = Col("CharType", 16, "") # 16-character String
energy = Col("Float64", 1, 0) # double (double-precision)
h5file = openFile("example.h5", mode = "w", title ="Test file")
table = h5file.createTable(h5file.root, "readout", Particle, "Readout ex.")
When I run the python script, I get the following:
HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
trace follows.
#000: H5T.c line 1480 in H5Tcopy(): not a data type
major(01): Function arguments
minor(03): Inappropriate type
HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
trace follows.
#000: H5D.c line 1072 in H5Dcreate(): not a location ID
major(01): Function arguments
minor(03): Inappropriate type
#001: H5G.c line 2408 in H5G_loc(): invalid group ID
major(01): Function arguments
minor(05): Bad value
#002: H5I.c line 1257 in H5I_find_id(): invalid ID
major(07): Atom layer
minor(32): Unable to find atom information (already closed?)
HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
trace follows.
#000: H5T.c line 1538 in H5Tclose(): not a data type
major(01): Function arguments
minor(03): Inappropriate type
Traceback (most recent call last):
File "testtables.py", line 15, in ?
table = h5file.createTable(h5file.root, "readout", Particle, "Readout
ex.")
File "/usr/lib/python2.3/site-packages/tables/File.py", line 722, in
createTable
filters=fprops, expectedrows=expectedrows)
File "/usr/lib/python2.3/site-packages/tables/Table.py", line 356, in
__init__
super(Table, self).__init__(parentNode, name, new, filters, log)
File "/usr/lib/python2.3/site-packages/tables/Leaf.py", line 265, in
__init__
super(Leaf, self).__init__(parentNode, name, log)
File "/usr/lib/python2.3/site-packages/tables/Node.py", line 285, in
__init__
self._v_objectID = self._g_create()
File "/usr/lib/python2.3/site-packages/tables/Table.py", line 577, in
_g_create
self._v_objectID = self._createTable(
File "TableExtension.pyx", line 273, in
TableExtension.Table._createTable
tables.exceptions.HDF5ExtError: Problems creating the table
Closing remaining opened files... example.h5... done.
I don't have superuser access to the system, which is why I'm trying to
use a statically compiled version of HDF5, and keeping the pytables module
within my home directory. Does anybody have any successful experiences
running pytables with a statically compiled HDf5 library? Here are my
system details:
Linux 2.6.9-22
python 2.3.4
Compiled using icc 9.0 (have the same problem with gcc)
I would really like to use pytables to organize my data, as I am currently
just pickling Numeric arrays :(
Thanks.
Naveen
-------------------------------------------------------------------------
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