[Numpy-discussion] ANN: Numpy 1.8.0 beta 1 release

Christoph Gohlke cgohlke at uci.edu
Tue Sep 3 17:23:59 EDT 2013


On 9/1/2013 9:54 AM, Charles R Harris wrote:
> Hi all,
>
> I'm happy to announce the first beta release of Numpy 1.8.0. Please try
> this beta and report any issues on the numpy-dev mailing list.
>
> Source tarballs and release notes can be found at
> https://sourceforge.net/projects/numpy/files/NumPy/1.8.0b1/. The Windows
> and OS X installers will follow when the infrastructure issues are dealt
> with.
>
> Chuck
>

Hello,

I tried numpy-1.8.0.dev-86a6e6c with msvc9 and MKL 11.1 on 
win-amd64-py2.7. It builds OK but there are 23 test errors and 6 
failures (attached).

Some 3rd party packages (e.g. scipy, numexpr, pytables, bottleneck, 
pandas and matplotlib) that were built against numpy-MKL 1.7 fail tests 
when used with numpy-MKL 1.8. Other packages test OK (e.g. skimage, 
sklearn, statsmodels, mahotas, pygame). See 
<http://www.lfd.uci.edu/~gohlke/pythonlibs/tests/20130902-win-amd64-py2.7-numpy-1.8.0.dev-86a6e6c/> 
compared to 
<http://www.lfd.uci.edu/~gohlke/pythonlibs/tests/20130902-win-amd64-py2.7/>. 


I have not looked in more detail or at other Python versions yet.

Christoph
-------------- next part --------------
...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................S............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K.....................................................................................................................................................................................................................................................................................................K...................................................................................................................................................................................................................................................K........................................................................K..K...............................K...SK.S.......S.................................................................................SSSSSSSSSSSSSSSSSSSSS.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K............E..K..............................................................EEEE.EEE................................................................................................................................................................................S.........SS..SS.....................................................................................................SSSSSSSS......................................................................................................................................................................................................................................................................................S......................E.............E..................................E............F...........................................................................................F...........................EEEEEEE..E..E..................EF...E........F............................F...E.............................F....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................K....................................................
======================================================================
ERROR: test_big_arrays (test_io.TestSavezLoad)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\testing\decorators.py", line 146, in skipper_func
    return f(*args, **kwargs)
  File "Test\numpy-build\numpy\lib\tests\test_io.py", line 148, in test_big_arrays
    a = np.empty(L, dtype=np.uint8)
ValueError: negative dimensions are not allowed

======================================================================
ERROR: Basic test of join_by
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 557, in test_inner_join
    test = join_by('a', a, b, jointype='inner')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: test_join (test_recfunctions.TestJoinBy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 568, in test_join
    test = join_by(('a', 'b'), a, b)
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: test_leftouter_join (test_recfunctions.TestJoinBy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 606, in test_leftouter_join
    test = join_by(('a', 'b'), a, b, 'leftouter')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: test_outer_join (test_recfunctions.TestJoinBy)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 578, in test_outer_join
    test = join_by(('a', 'b'), a, b, 'outer')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Basic test of join_by no_r1postfix
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 634, in test_no_r1postfix
    test = join_by('a', a, b, r1postfix='', r2postfix='2', jointype='inner')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Basic test of join_by no_r2postfix
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 652, in test_no_r2postfix
    test = join_by('a', a, b, r1postfix='1', r2postfix='', jointype='inner')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: test_two_keys_two_vars (test_recfunctions.TestJoinBy2)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\lib\tests\test_recfunctions.py", line 678, in test_two_keys_two_vars
    test = join_by(['a', 'k'], a, b, r1postfix='1', r2postfix='2', jointype='inner')
  File "Test\numpy-build\numpy\lib\recfunctions.py", line 919, in join_by
    flag_in = ma.concatenate(([False], aux[1:] == aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3629, in __eq__
    check = ndarray.__eq__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Tests the concatenation on flexible arrays.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_core.py", line 146, in test_concatenate_flexible
    assert_equal_records(test, data)
  File "Test\numpy-build\numpy\ma\testutils.py", line 78, in assert_equal_records
    assert_equal(operator.getitem(a, f), operator.getitem(b, f))
  File "Test\numpy-build\numpy\ma\testutils.py", line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "Test\numpy-build\numpy\ma\testutils.py", line 196, in assert_array_equal
    header='Arrays are not equal')
  File "Test\numpy-build\numpy\ma\testutils.py", line 176, in assert_array_compare
    m = mask_or(getmask(x), getmask(y))
  File "Test\numpy-build\numpy\ma\core.py", line 1621, in mask_or
    return make_mask(umath.logical_or(m1, m2), copy=copy, shrink=shrink)
ValueError: operands could not be broadcast together with shapes (9) (10) 

======================================================================
ERROR: Tests conversions and indexing
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_core.py", line 247, in test_indexing
    assert_equal(x1[:], x2[:])
  File "Test\numpy-build\numpy\ma\testutils.py", line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "Test\numpy-build\numpy\ma\testutils.py", line 196, in assert_array_equal
    header='Arrays are not equal')
  File "Test\numpy-build\numpy\ma\testutils.py", line 177, in assert_array_compare
    x = masked_array(x, copy=False, mask=m, keep_mask=False, subok=False)
  File "Test\numpy-build\numpy\ma\core.py", line 2701, in __new__
    raise MaskError(msg % (nd, nm))
MaskError: Mask and data not compatible: data size is 4, mask size is 3.

======================================================================
ERROR: test_methods_with_output (test_core.TestMaskedArrayArithmetic)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_core.py", line 1115, in test_methods_with_output
    result = xmmeth(axis=0, out=output)
  File "Test\numpy-build\numpy\ma\core.py", line 4813, in var
    out.flat = dvar
  File "Test\numpy-build\numpy\ma\core.py", line 3314, in _set_flat
    y[:] = value
  File "Test\numpy-build\numpy\ma\core.py", line 3109, in __setslice__
    self.__setitem__(slice(i, j), value)
  File "Test\numpy-build\numpy\ma\core.py", line 3063, in __setitem__
    ndarray.__setitem__(_data, indx, dval)
ValueError: could not broadcast input array from shape (4) into shape (3)

======================================================================
ERROR: Test in1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 858, in test_in1d
    test = in1d(a, b)
  File "Test\numpy-build\numpy\ma\extras.py", line 1141, in in1d
    ar1, rev_idx = unique(ar1, return_inverse=True)
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 185, in unique
    flag = np.concatenate(([True], aux[1:] != aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test in1d's invert parameter
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 872, in test_in1d_invert
    assert_equal(np.invert(in1d(a, b)), in1d(a, b, invert=True))
  File "Test\numpy-build\numpy\ma\extras.py", line 1141, in in1d
    ar1, rev_idx = unique(ar1, return_inverse=True)
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 185, in unique
    flag = np.concatenate(([True], aux[1:] != aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test intersect1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 824, in test_intersect1d
    test = intersect1d(x, y)
  File "Test\numpy-build\numpy\ma\extras.py", line 1093, in intersect1d
    aux = ma.concatenate((unique(ar1), unique(ar2)))
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 198, in unique
    flag = np.concatenate(([True], ar[1:] != ar[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test setdiff1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 894, in test_setdiff1d
    test = setdiff1d(a, b)
  File "Test\numpy-build\numpy\ma\extras.py", line 1198, in setdiff1d
    ar1 = unique(ar1)
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 198, in unique
    flag = np.concatenate(([True], ar[1:] != ar[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test setdiff1d_charray
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 905, in test_setdiff1d_char_array
    assert_array_equal(setdiff1d(a, b), np.array(['c']))
  File "Test\numpy-build\numpy\ma\extras.py", line 1200, in setdiff1d
    aux = in1d(ar1, ar2, assume_unique=True)
  File "Test\numpy-build\numpy\ma\extras.py", line 1153, in in1d
    bool_ar = (sar[1:] == sar[:-1])
  File "Test\numpy-build\numpy\ma\core.py", line 3620, in __eq__
    check = ndarray.__eq__(self.filled(0), other)
ValueError: shape mismatch: objects cannot be broadcast to a single shape

======================================================================
ERROR: Test setxor1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 832, in test_setxor1d
    test = setxor1d(a, b)
  File "Test\numpy-build\numpy\ma\extras.py", line 1110, in setxor1d
    ar1 = unique(ar1)
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 198, in unique
    flag = np.concatenate(([True], ar[1:] != ar[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test union1d
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 884, in test_union1d
    test = union1d(a, b)
  File "Test\numpy-build\numpy\ma\extras.py", line 1174, in union1d
    return unique(ma.concatenate((ar1, ar2)))
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 198, in unique
    flag = np.concatenate(([True], ar[1:] != ar[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test unique on masked data w/use_mask=True
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 721, in test_unique_onmaskedarray
    test = unique(data, return_index=True, return_inverse=True)
  File "Test\numpy-build\numpy\ma\extras.py", line 1056, in unique
    return_inverse=return_inverse)
  File "Test\numpy-build\numpy\lib\arraysetops.py", line 185, in unique
    flag = np.concatenate(([True], aux[1:] != aux[:-1]))
  File "Test\numpy-build\numpy\ma\core.py", line 3662, in __ne__
    check = ndarray.__ne__(self.filled(0), odata).view(type(self))
AttributeError: 'NotImplementedType' object has no attribute 'view'

======================================================================
ERROR: Test of average.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 129, in test_testAverage1
    assert_equal(average(ott, axis=0).mask, [True])
AttributeError: 'numpy.float64' object has no attribute 'mask'

======================================================================
ERROR: Tests median w/ 2D
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 503, in test_2d
    z[:, 0] = x[:]
  File "Test\numpy-build\numpy\ma\core.py", line 3063, in __setitem__
    ndarray.__setitem__(_data, indx, dval)
ValueError: could not broadcast input array from shape (100) into shape (101)

======================================================================
ERROR: Tests polyfit
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 681, in test_polyfit
    full=True)
  File "Test\numpy-build\numpy\lib\polynomial.py", line 555, in polyfit
    raise TypeError("expected x and y to have same length")
TypeError: expected x and y to have same length

======================================================================
ERROR: Test of conversions and indexing
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_old_ma.py", line 219, in test_testCI
    assert_(eq(x1[:], x2[:]))
  File "Test\numpy-build\numpy\ma\tests\test_old_ma.py", line 15, in eq
    result = allclose(v, w)
  File "Test\numpy-build\numpy\ma\core.py", line 6916, in allclose
    xinf = np.isinf(masked_array(x, copy=False, mask=m)).filled(False)
  File "Test\numpy-build\numpy\ma\core.py", line 2701, in __new__
    raise MaskError(msg % (nd, nm))
MaskError: Mask and data not compatible: data size is 4, mask size is 3.

======================================================================
FAIL: Test hard_mask
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_core.py", line 1243, in test_hardmask
    assert_equal(xs._data, [1, 1, 1, 1, 1])
  File "Test\numpy-build\numpy\ma\testutils.py", line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "Test\numpy-build\numpy\ma\testutils.py", line 196, in assert_array_equal
    header='Arrays are not equal')
  File "Test\numpy-build\numpy\ma\testutils.py", line 189, in assert_array_compare
    verbose=verbose, header=header)
  File "Test\numpy-build\numpy\testing\utils.py", line 644, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 20.0%)
 x: array([ 1,  1,  1,  1, 40])
 y: array([1, 1, 1, 1, 1])

======================================================================
FAIL: Test getmaskarray on flexible dtype
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_core.py", line 3465, in test_getmaskarray
    dtype=[('a', '|b1'), ('b', '|b1')]))
  File "Test\numpy-build\numpy\ma\testutils.py", line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "Test\numpy-build\numpy\ma\testutils.py", line 196, in assert_array_equal
    header='Arrays are not equal')
  File "Test\numpy-build\numpy\ma\testutils.py", line 189, in assert_array_compare
    verbose=verbose, header=header)
  File "Test\numpy-build\numpy\testing\utils.py", line 644, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 33.3333333333%)
 x: array([(True, True), (True, True), (False, False)], 
      dtype=[('a', '?'), ('b', '?')])
 y: array([(True, True), (True, True), (True, True)], 
      dtype=[('a', '?'), ('b', '?')])

======================================================================
FAIL: Tests median w/ 2D arrays and different axis.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_extras.py", line 517, in test_2d_waxis
    assert_equal(median(x), 14.5)
  File "Test\numpy-build\numpy\ma\testutils.py", line 100, in assert_equal
    raise AssertionError(msg)
AssertionError: 
Items are not equal:
 ACTUAL: 16.0
 DESIRED: 14.5

======================================================================
FAIL: Tests setting fields.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_mrecords.py", line 134, in test_set_fields
    assert_equal(mbase.a._mask, [0, 1, 0, 0, 0])
  File "Test\numpy-build\numpy\ma\testutils.py", line 123, in assert_equal
    return assert_array_equal(actual, desired, err_msg)
  File "Test\numpy-build\numpy\ma\testutils.py", line 196, in assert_array_equal
    header='Arrays are not equal')
  File "Test\numpy-build\numpy\ma\testutils.py", line 189, in assert_array_compare
    verbose=verbose, header=header)
  File "Test\numpy-build\numpy\testing\utils.py", line 644, in assert_array_compare
    raise AssertionError(msg)
AssertionError: 
Arrays are not equal

(mismatch 20.0%)
 x: array([False,  True, False, False,  True], dtype=bool)
 y: array([0, 1, 0, 0, 0])

======================================================================
FAIL: Test of average.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_old_ma.py", line 529, in test_testAverage1
    self.assertTrue(average(ott, axis=0) is masked)
AssertionError: False is not true

======================================================================
FAIL: Issue gh-2757
----------------------------------------------------------------------
Traceback (most recent call last):
  File "Test\numpy-build\numpy\ma\tests\test_regression.py", line 62, in test_var_sets_maskedarray_scalar
    assert_(mout._data == 0)
  File "Test\numpy-build\numpy\testing\utils.py", line 44, in assert_
    raise AssertionError(msg)
AssertionError

----------------------------------------------------------------------
Ran 4721 tests in 36.084s

FAILED (KNOWNFAIL=10, SKIP=39, errors=23, failures=6)
Running unit tests for numpy
NumPy version 1.8.0.dev-86a6e6c
NumPy is installed in Test\numpy-build\numpy
Python version 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
nose version 1.3.0


More information about the NumPy-Discussion mailing list