Hi Alex,

A Friday 21 March 2008, Alex Olivas escrigué:
> I just built pytables and hdf5 on my Intel Mac and ran the tests
> and got two failures.  Here's my system information :
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>=-=-=-= PyTables version:  2.0.3
> HDF5 version:      1.8.0
> NumPy version:     1.0.5.dev4851
> Zlib version:      1.2.3
> BZIP2 version:     1.0.4 (20-Dec-2006)
> Python version:    2.5.1 (r251:54863, Feb  4 2008, 21:48:13)
> [GCC 4.0.1 (Apple Inc. build 5465)]
> Platform:          darwin-i386
> Byte-ordering:     little
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>=-=-=-=
>
> This is the output of the tests:
>
> =====================================================================
>= FAIL: Checking representation of a nested Table
> ---------------------------------------------------------------------
>- Traceback (most recent call last):
>   File "tables/tests/common.py", line 247, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "tables/tests/test_nestedtypes.py", line 700, in test00a_repr
>     """)
> AssertionError
>
> =====================================================================
>= FAIL: Checking representation of a nested Table
> ---------------------------------------------------------------------
>- Traceback (most recent call last):
>   File "tables/tests/common.py", line 247, in newmethod
>     return oldmethod(self, *args, **kwargs)
>   File "tables/tests/test_nestedtypes.py", line 700, in test00a_repr
>     """)
> AssertionError
>
> ---------------------------------------------------------------------
>- Ran 5746 tests in 61.240s

This looks like the NumPy team has chosen for 1.0.5 a different 
representation for any on its data types.  With NumPy 1.0.4 the tests 
passes to me:

$ python tables/tests/test_nestedtypes.py ReadNoReopen.test00a_repr 
verbose
Running ReadNoReopen.test00a_repr
---------------------------------
str(tbl)--> /test (Table(2,)) 'test00'
repr(tbl)--> /test (Table(2,)) 'test00'
  description := {
  "x": Int32Col(shape=(2,), dflt=0, pos=0),
  "Info": {
    "value": ComplexCol(itemsize=16, shape=(), dflt=0j, pos=0),
    "y2": Float64Col(shape=(), dflt=1.0, pos=1),
    "Info2": {
      "name": StringCol(itemsize=2, shape=(), dflt='', pos=0),
      "value": ComplexCol(itemsize=16, shape=(2,), dflt=0j, pos=1),
      "y3": Time64Col(shape=(2,), dflt=1.0, pos=2),
      "z3": EnumCol(enum=Enum({'r': 4, 'b': 1, 'g': 2}), dflt='r', 
base=Int32Atom(shape=(), dflt=0), shape=(2,), pos=3)},
    "name": StringCol(itemsize=2, shape=(), dflt='', pos=3),
    "z2": UInt8Col(shape=(), dflt=1, pos=4)},
  "color": StringCol(itemsize=2, shape=(), dflt=' ', pos=2),
  "info": {
    "Name": StringCol(itemsize=2, shape=(), dflt='', pos=0),
    "Value": ComplexCol(itemsize=16, shape=(), dflt=0j, pos=1)},
  "y": Float64Col(shape=(2, 2), dflt=1.0, pos=4),
  "z": UInt8Col(shape=(), dflt=1, pos=5)}
  byteorder := 'little'
  chunkshape := (56,)

.
----------------------------------------------------------------------
Ran 1 test in 0.087s

OK

Could you please run the:

$ python tables/tests/test_nestedtypes.py ReadNoReopen.test00a_repr 
verbose

line (do not forget the 'verbose' option) and send me back the ouput?  
I'll update the test to deal with the possible difference in NumPy 
representations.

Thanks,

-- 
>0,0<   Francesc Altet     http://www.carabos.com/
V   V   Cárabos Coop. V.   Enjoy Data
 "-"

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
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

Reply via email to