A Thursday 15 July 2010 19:00:08 Shalom Rav escrigué: > Hi, > > I created a PyTables file containing circa 15000 groups, where in each of > these groups, there is one single table, defined using the following class: > > > class *SimpleScheme*(tables.IsDescription): > > value = tables.Float32Col(pos = 0, dflt = numpy.NaN) > > Each such a table has about 1500 rows in it. > > The table creation phase was successful, and I can verify that by opening > ViTables and seeing the values for each one of the tables. > > The problem is that when I try to read ONE FLOAT from each one of the > tables (meaning, a total of 15000 floats), I get an error after about a > while: > > Traceback (most recent call last): > File "C:\Documents and Settings\pytables -- e.py", line 179, in <module> > ReadFile2() > File "C:\Documents and Settings\pytables -- e.py", line 89, in ReadFile2 > listItems.append(table[0][0]) > File "C:\Python26\lib\site-packages\tables\table.py", line 1714, in > __getitem__ > return self.read(start, stop, step)[0] > File "C:\Python26\lib\site-packages\tables\table.py", line 1583, in read > arr = self._read(start, stop, step, field) > File "C:\Python26\lib\site-packages\tables\table.py", line 1536, in _read > self._read_records(start, stop-start, result) > File "tableExtension.pyx", line 565, in > tables.tableExtension.Table._read_records > HDF5ExtError: Problems reading records. > > > Can anybody tell me what is the problem, and how to fix it? I can send the > file if necessary (it has a size of 22MB). Thanks.
Rather than sending the output file, could you please send a self-contained script showing the behaviour? Also, I'm curious on why you are using Table objects with only one single field instead of using *Array objects for this. Thanks, -- Francesc Alted ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Pytables-users mailing list Pytables-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pytables-users