So I can confirm that this bug is not related to Mac. I can reproduce it on
a i386 linux box with python 2.4.
In [1]:import numpy
import tabl
In [2]:import tables
numpy
In [3]:numpy.__version__
Out[3]:'1.0.4.dev4003'
In [4]:tables.__version__
Out[4]:'2.1b1.dev'
Cheers,
Jan
On 9/13/07, Jan Strube <[EMAIL PROTECTED]> wrote:
>
> Hello, list,
>
> I'm trying to read a couple of entries from a table.
> I'm on an intel MacBook using pytables 2 with python 2.5 and numpy 1.0.3.
> The problem is that I pass a numpy array to readCoordinates. That gives me
> the error message at the end of this mail.
> casting this array to a python list, however, lets me successfully read
> all the entries in the table. The dtype of the numpy array is int64, and the
> shape is (x,).
> numpy.all(entries == list(entries)) is True, so I really don't know where
> this difference in behavior comes from.
> I have not seen this before and I'm a bit surprised by this behavior.
>
> Please let me know if you can think of an easy test case for this, or
> other information that I can provide to help understand this issue.
>
> Best regards,
> Jan
>
> The error message says this:
>
> HDF5-DIAG: Error detected in HDF5 library version: 1.6.5 thread 0. Back
> trace follows.
> #000: H5Dio.c line 485 in H5Dread(): selection+offset not within extent
> major(14): Dataspace interface
> minor(04): Out of range
> Traceback (most recent call last):
> File "plotMass_dependentEfficiency.py", line 118, in <module>
> main()
> File "plotMass_dependentEfficiency.py", line 45, in main
> computeEfficiency(cands1)
> File "plotMass_dependentEfficiency.py", line 33, in computeEfficiency
> x = cands.readCoordinates(binnedCandidateRows)
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tables/table.py",
> line 1556, in readCoordinates
> result = self._readCoordinates(coords, field)
> File
> "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/tables/table.py",
> line 1533, in _readCoordinates
> self._read_elements(result, coords)
> File "tableExtension.pyx", line 573, in
> tableExtension.Table._read_elements
> tables.exceptions.HDF5ExtError: Problems reading records.
>
--
Jan Strube -- University of Oregon
Stanford Linear Accelerator Center
Bldg. 48
phone: (650) 926-2913
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Pytables-users mailing list
Pytables-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pytables-users