Closed shadowleaves closed 10 years ago
What versions of la and bottleneck are installed?
import la
la.__version__
import bottleneck as bn
bn.__version__
la.version '0.6.0' import bottleneck as bn bn.version '0.8.0'
never mind - recompiled the package and re-test and now all tests passed: Ran 3013 tests in 30.140s
OK
OK, glad you figured it out.
Ubuntu 14.04 LTS x86-64, python 2.7.6 installed: bottleneck, nose
/usr/lib/python2.7/dist-packages/numpy/core/_methods.py:55: RuntimeWarning: Mean of empty slice. warnings.warn("Mean of empty slice.", RuntimeWarning) /usr/lib/python2.7/dist-packages/numpy/core/_methods.py:67: RuntimeWarning: invalid value encountered in double_scalars ret = ret.dtype.type(ret / rcount) /usr/local/lib/python2.7/dist-packages/la/farray/misc.py:134: RuntimeWarning: invalid value encountered in double_scalars return num / den ............./usr/local/lib/python2.7/dist-packages/la/farray/misc.py:16: RuntimeWarning: invalid value encountered in less_equal if (x <= 0).any() and check_for_greater_than_zero: ................../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:
movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) .E.................................................................................................................................................................................................................................F..........F................................................/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:3634: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, lar.morph, [0, 0], 0) ............................./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:712: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, p.add, datetime.date(2007, 1, 1)) ../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:726: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(IndexError, p.add, self.l4) ......./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1182: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, p.div, datetime.date(2007, 1, 1)) ......../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1022: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, p.mul, datetime.date(2007, 1, 1)) ......./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:869: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, p.add, datetime.date(2007, 1, 1)) ............................./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) /usr/local/lib/python2.7/dist-packages/la/farray/normalize.py:113: RuntimeWarning: invalid value encountered in greater g = (x[indlast] > x).sum(axis) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/local/lib/python2.7/dist-packages/la/farray/normalize.py:212: RuntimeWarning: invalid value encountered in greater idx = (i - count) > n ...EEE.E......................../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1710: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, self.l.eq, date) ..../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1586: RuntimeWarning: invalid value encountered in greater_equal x = self.x >= other ../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1607: RuntimeWarning: invalid value encountered in greater_equal x = x >= y .../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1582: RuntimeWarning: invalid value encountered in greater x = self.x > other ../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1603: RuntimeWarning: invalid value encountered in greater x = x > y ./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1875: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, self.l.gt, date) .../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1584: RuntimeWarning: invalid value encountered in less_equal x = self.x <= other ../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1605: RuntimeWarning: invalid value encountered in less_equal x = x <= y ./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1927: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, self.l.le, date) .../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1580: RuntimeWarning: invalid value encountered in less x = self.x < other ../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1601: RuntimeWarning: invalid value encountered in less x = x < y ./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1823: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, self.l.lt, date) ....../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1771: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, self.l.ne, date) .........../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2229: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.getitem, [0,1,0]) ..../usr/local/lib/python2.7/dist-packages/la/deflarry.py:1694: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future x = self.x[index] /usr/local/lib/python2.7/dist-packages/la/deflarry.py:1694: DeprecationWarning: using a non-integer number instead of an integer will result in an error in the future x = self.x[index] ........../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2136: RuntimeWarning: invalid value encountered in greater idx = self.l.x.sum(1) > 2 .../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2167: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(IndexError, self.l.getitem, 100) ./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2171: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(IndexError, self.l.getitem, 'a') ........./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2354: RuntimeWarning: invalid value encountered in greater idx = self.l.x.sum(1) > 2 ................../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2644: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.labelindex, 3, None) ......./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2558: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(IndexError, self.l2.maxlabel, 1) ...../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:2586: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(IndexError, self.l2.minlabel, 1) ............................/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1390: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, original.geometric_mean) ...../usr/local/lib/python2.7/dist-packages/la/farray/normalize.py:104: RuntimeWarning: invalid value encountered in greater g = ((x[indlast] > x) * w).sum(axis) ...E/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1571: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.max, 3) ...../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1371: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.mean, 3) ...../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1439: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.median, 3) ....E/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1605: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.min, 3) ...../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1307: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.prod, 3) ......./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1483: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.std, 3) ....../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1265: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.sum, 3) ...../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:1532: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.var, 3) ....../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:578: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, y.invert) ........../usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:391: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, self.l.clip, 3, 2) ................./usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py:567: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, y.invert) ....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:319: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, align, y1, y2, 'outer', False) ..../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:358: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, align, y1, y2, 'outer', False) ......../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:236: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, align, y1, y2, 'outer', False) .........../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:455: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(TypeError, align, y1, y2, 'outer', False) ../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:473: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, align, y1, y2, j, False) ..................................................../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:691: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, empty, (2,), ['a', 'b', 'c']) ...../usr/local/lib/python2.7/dist-packages/la/tests/flarry_test.py:688: PendingDeprecationWarning: Please use assertRaises instead. self.failUnlessRaises(ValueError, lrange, (2,), ['a', 'b', 'c']) ......................................................../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) /usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) ../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) /usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) .............................................................................................../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) .E........./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) .E........................................................../usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) /usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingrank
is deprecated, usemove_ranking
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) /usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) ./usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning) /usr/lib/python2.7/dist-packages/numpy/lib/utils.py:134: DeprecationWarning:movingsum
is deprecated, usemove_nansum
instead! warnings.warn(depdoc, DeprecationWarning).E
ERROR: Failure: IndexError (too many indices)
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 251, in generate for test in g(): File "/usr/local/lib/python2.7/dist-packages/la/tests/all_nan_test.py", line 31, in test_all_nan actual = getattr(lar(), method)(_parameters) File "/usr/local/lib/python2.7/dist-packages/la/deflarry.py", line 3066, in quantile x = quantile(self.x, q, axis=axis) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],_args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: larry.quantile_1
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 3401, in test_quantile_1 actual = self.l1.quantile(2) File "/usr/local/lib/python2.7/dist-packages/la/deflarry.py", line 3066, in quantile x = quantile(self.x, q, axis=axis) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: larry.quantile_2
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 3410, in test_quantile_2 actual = self.l1.quantile(3) File "/usr/local/lib/python2.7/dist-packages/la/deflarry.py", line 3066, in quantile x = quantile(self.x, q, axis=axis) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: larry.quantile_3
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 3419, in test_quantile_3 actual = self.l1.quantile(3, axis=None) File "/usr/local/lib/python2.7/dist-packages/la/deflarry.py", line 3066, in quantile x = quantile(self.x, q, axis=axis) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 283, in quantile y = np.apply_along_axis(_quantileraw1d, 0, x.flat, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: larry.quantile_5
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 3437, in test_quantile_5 actual = original.quantile(3, axis=None) File "/usr/local/lib/python2.7/dist-packages/la/deflarry.py", line 3066, in quantile x = quantile(self.x, q, axis=axis) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 283, in quantile y = np.apply_along_axis(_quantileraw1d, 0, x.flat, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: larry.max_3
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 1567, in test_max3 self.assert((p.x == t).all(), msg) AttributeError: 'bool' object has no attribute 'all'
ERROR: larry.min_3
Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/la/tests/deflarry_test.py", line 1601, in test_min3 self.assert((p.x == t).all(), msg) AttributeError: 'bool' object has no attribute 'all'
ERROR: Check that functions return a numpy array or a scalar.
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest self.test(_self.arg) File "/usr/local/lib/python2.7/dist-packages/la/tests/more_test.py", line 23, in check_return_array res = func(_args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: more_test.test_3d(<function quantile at 0x7fd936c59938>, (array([[[ 9. , 9. ],
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest self.test(_self.arg) File "/usr/local/lib/python2.7/dist-packages/la/tests/more_test.py", line 67, in check_3d res = func(_args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],*args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
ERROR: Failure: IndexError (too many indices)
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 251, in generate for test in g(): File "/usr/local/lib/python2.7/dist-packages/la/tests/test_3d.py", line 71, in test_3d res2d = func(_args2d, _kwds2d) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 289, in quantile y = np.apply_along_axis(_quantileraw1d, axis, x, q) File "/usr/lib/python2.7/dist-packages/numpy/lib/shape_base.py", line 79, in apply_along_axis res = func1d(arr[tuple(i.tolist())],args) File "/usr/local/lib/python2.7/dist-packages/la/farray/normalize.py", line 228, in _quantileraw1d xi = xi[idx,:] IndexError: too many indices
FAIL: larry dtype test
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/local/lib/python2.7/dist-packages/la/util/testing.py", line 203, in assert_larry_equal raise AssertionError, err_msg AssertionError:
TEST: larry creation failed with dtype <type 'str'> using a array as input
FAIL: larry.astype test
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/usr/local/lib/python2.7/dist-packages/la/util/testing.py", line 203, in assert_larry_equal raise AssertionError, err_msg AssertionError:
TEST: larry.astype failed on dtype <type 'str'>
Ran 3030 tests in 3.911s
FAILED (errors=10, failures=2) Running unit tests for la NumPy version 1.8.1 NumPy is installed in /usr/lib/python2.7/dist-packages/numpy Python version 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] nose version 1.3.1