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.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pytables-users

Reply via email to