Hi,
Thank you so much for your reply.
The problem I described got solved. As per the design, would an array of
say 20,000 floats be better than a table (with one field), containing 20,000
rows of floats? (suppose we define "better" in terms of writing time / read
time).
Thank you.
On Thu, Jul 15, 2010 at 1:00 PM, Shalom Rav <csharpplusproj...@gmail.com>wrote:
> 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.
>
------------------------------------------------------------------------------
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