Hi Stefan,
Your previous message to pytables list has bounced because your attachment was
bigger than 40 KB. Anyway, as I'm the administrator of the list, I got it :-)
A Dimecres 02 Agost 2006 18:16, [EMAIL PROTECTED] va
escriure:
> Although this does not duplicate the creation of the problem table, it
> does at least manifest it. I attached a .h5 file, the third table in
> the root node raises the exception when I iterate with this code..
>
> fp = openFile( 'saved.h5', 'r' )
> for row in fp.root.table_000000002.iterrows():
> print row
Yes, I can reproduce the problem here (using Linux on i386 and HDF5
1.8.0-alpha2 and Python 2.5b2).
Well, it seems that something is wrong when compressing with zlib (as all the
datasets were compressed using it), not only lzo as I was afraid.
Interestingly enough, the h5ls utility that comes with HDF5 is also unable to
retrieve the info from the third table:
table_000000002 Dataset {6000/Inf}
Attribute: CLASS scalar
Type: 6-byte null-terminated ASCII string
Data: "TABLE"
[snip]
Attribute: FIELD_0_FILL scalar
Type: 7-byte null-terminated ASCII string
Data: "Fnan
."
Location: 1:44482
Links: 1
Modified: 2006-07-19 19:53:26 CEST
Chunks: {250} 2000 bytes
Storage: 48000 logical bytes, 744 allocated bytes, 6451.61% utilization
Filter-0: shuffle-2 OPT {8}
Filter-1: deflate-1 OPT {1}
Type: struct {
"score_squared" +0 native double
} 8 bytes
Data:
Unable to print data.
Mmm, I see that your default value for the single column seems a Python NaN.
Is that true? Perhaps this can be the responsible for the problems. Can you
change it to other value (say 0) and check again?
If this is not the problem, we should end writing a small program in C (in
order to get PyTables out of the loop) to write the data that is causing the
problem and, if we can reproduce it, report to the THG people for their
consideration. If you can't do it because you don't have C knowledge, I can
help you doing this, but I'll need the data for the 3rd table.
--
>0,0< Francesc Altet http://www.carabos.com/
V V Cárabos Coop. V. Enjoy Data
"-"
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Pytables-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users