[Numpy-discussion] numarray 1.5.1 self test failure

Mike Zingale zingale at gmail.com
Wed Mar 29 07:02:07 CST 2006


Hi, I just installed numarray 1.5.1 on my Fedora Core 4 box (python
version 2.4.1).  Right afterwards, I did:

import numarray.testall as testall
testall.test()

at the python prompt, and I got 1 failure.  The full output is below.

Is this a known failure?  My machine is a dual Xeon, and I am running
the 32bit version of Fedora.

Mike


>>> import numarray.testall as testall
>>> testall.test()
Testing numarray 1.5.1 on normal Python (2, 4, 1, 'final', 0) on
platform linux2 with builtin linear algebra support
numarray.numtest:                        2.41      ((0, 1208), (0, 1208))
numarray.ieeespecial:                    0.06      (0, 86)
numarray.records:                        0.05      (0, 48)
numarray.strings:                        0.16      (0, 189)
numarray.memmap:                         0.07      (0, 82)
numarray.objects:                        0.12      (0, 105)
numarray.memorytest:                     0.01      (0, 16)
numarray.examples.convolve:              0.09      ((0, 20), (0, 20),
(0, 20), (0, 20))
numarray.convolve:                       0.07      (0, 45)
numarray.fft:                            0.13      (0, 75)
numarray.linear_algebra:                 1.55      ((0, 46), (0, 51))
numarray.image:                          0.05      (0, 37)
numarray.nd_image:                       2.76      (0, 397)
numarray.random_array:                   0.10      (0, 53)
numarray.ma:                             1.42      (0, 674)
numarray.matrix:                         0.03      (0, 11)
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 32, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
         na = numarray.array([1,2,3], typecode)
         num = Numeric.zeros(shape=2, typecode=typecode)
         num = Numeric.array(na, copy=1)
         num2 = Numeric.array([1,2,3], typecode)
         print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1 1] 1
    1 [1 1 1] 1
    s [1 1 1] 1
    l [1 1 1] 1
    f [1 1 1] 1
    d [1 1 1] 1
    F [1 1 1] 1
    D [1 1 1] 1
Got:
    b [1 1 1] 0
    1 [1 1 1] 0
    s [1 1 1] 0
    l [1 1 1] 1
    f [1 1 1] 0
    d [1 1 1] 1
    F [1 1 1] 0
    D [1 1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 49, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
         na = numarray.array([1,2,3], typecode)
         num = Numeric.zeros(shape=2, typecode=typecode)
         num = Numeric.array(na, copy=0)
         num2 = Numeric.array([1,2,3], typecode)
         print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1 1] 1
    1 [1 1 1] 1
    s [1 1 1] 1
    l [1 1 1] 1
    f [1 1 1] 1
    d [1 1 1] 1
    F [1 1 1] 1
    D [1 1 1] 1
Got:
    b [1 1 1] 0
    1 [1 1 1] 0
    s [1 1 1] 0
    l [1 1 1] 1
    f [1 1 1] 0
    d [1 1 1] 1
    F [1 1 1] 0
    D [1 1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 66, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
         na = numarray.array([1,2,3], typecode)
         num = Numeric.zeros(shape=2, typecode=typecode)
         num = Numeric.array(na[::2], copy=0)
         num2 = Numeric.array([1,3], typecode)
         print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 83, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
         na = numarray.array([1,2,3], typecode)
         num = Numeric.zeros(shape=2, typecode=typecode)
         num = Numeric.array(na[::2], copy=1)
         num2 = Numeric.array([1,3], typecode)
         print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 100, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
         na = numarray.array([1,2,3], typecode)
         num = Numeric.zeros(shape=2, typecode=typecode)
         num = Numeric.array(na[1:], copy=1)
         num2 = Numeric.array([2,3], typecode)
         print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 117, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        na = numarray.array([1,2,3], typecode)
        num = Numeric.zeros(shape=2, typecode=typecode)
        num = Numeric.array(na[1:], copy=0)
        num2 = Numeric.array([2,3], typecode)
        print typecode, num == num2, int(num.typecode() == num2.typecode())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 208, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num, copy=1)
        nb = numarray.array([1,2,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1 1] 1
    1 [1 1 1] 1
    s [1 1 1] 1
    l [1 1 1] 1
    f [1 1 1] 1
    d [1 1 1] 1
    F [1 1 1] 1
    D [1 1 1] 1
    i [1 1 1] 1
Got:
    b [1 1 1] 0
    1 [1 1 1] 0
    s [1 1 1] 0
    l [1 1 1] 1
    f [1 1 1] 0
    d [1 1 1] 1
    F [1 1 1] 0
    D [1 1 1] 1
    i [1 1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 226, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num, copy=0)
        nb = numarray.array([1,2,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1 1] 1
    1 [1 1 1] 1
    s [1 1 1] 1
    l [1 1 1] 1
    f [1 1 1] 1
    d [1 1 1] 1
    F [1 1 1] 1
    D [1 1 1] 1
    i [1 1 1] 1
Got:
    b [1 1 1] 0
    1 [1 1 1] 0
    s [1 1 1] 0
    l [1 1 1] 1
    f [1 1 1] 0
    d [1 1 1] 1
    F [1 1 1] 0
    D [1 1 1] 1
    i [1 1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 244, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num[::2], copy=1)
        nb = numarray.array([1,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
    i [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
    i [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 262, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num[::2], copy=0)
        nb = numarray.array([1,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
    i [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
    i [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 280, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num[1:], copy=1)
        nb = numarray.array([2,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
    i [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
    i [1 1] 1
**********************************************************************
File "/usr/lib/python2.4/site-packages/numarray/array_protocol.py",
line 298, in numarray.array_protocol.test_Numeric
Failed example:
    for typecode in typecodes:
        num = Numeric.array([1,2,3], typecode)
        na = numarray.zeros(shape=2, typecode=typecode)
        na = numarray.array(num[1:], copy=0)
        nb = numarray.array([2,3], typecode)
        print typecode, na == nb, int(na.type() == nb.type())
Expected:
    b [1 1] 1
    1 [1 1] 1
    s [1 1] 1
    l [1 1] 1
    f [1 1] 1
    d [1 1] 1
    F [1 1] 1
    D [1 1] 1
    i [1 1] 1
Got:
    b [1 1] 0
    1 [1 1] 0
    s [1 1] 0
    l [1 1] 1
    f [1 1] 0
    d [1 1] 1
    F [1 1] 0
    D [1 1] 1
    i [1 1] 1
**********************************************************************
1 items had failures:
  12 of  18 in numarray.array_protocol.test_Numeric
***Test Failed*** 12 failures.
numarray.array_protocol:                 0.09      (12, 18)
numarray.dtype:                          0.02      (0, 15)
Total time:                              9.27
>




More information about the Numpy-discussion mailing list