[SciPy-dev] Changeset 4181
Nils Wagner
nwagner@iam.uni-stuttgart...
Mon Apr 28 13:15:36 CDT 2008
On Sun, 27 Apr 2008 10:28:45 +0200
"Nils Wagner" <nwagner@iam.uni-stuttgart.de> wrote:
> Hi All,
>
> Changeset 4181 introduces
>
>
Just a few errors persist in r4195 :-)
======================================================================
ERROR: Failure: ImportError (cannot import name _bspline)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/nose/loader.py",
line 363, in loadTestsFromName
module = self.importer.importFromPath(
File
"/usr/lib/python2.4/site-packages/nose/importer.py", line
39, in importFromPath
return self.importFromDir(dir_path, fqname)
File
"/usr/lib/python2.4/site-packages/nose/importer.py", line
84, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_bspline.py",
line 9, in ?
import scipy.stats.models.bspline as B
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/bspline.py",
line 23, in ?
from scipy.stats.models import _bspline
ImportError: cannot import name _bspline
======================================================================
ERROR: test_factor3 (test_formula.TestFormula)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_formula.py",
line 231, in test_factor3
m = fac.main_effect(reference=1)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/formula.py",
line 273, in main_effect
reference = names.index(reference)
ValueError: list.index(x): x not in list
======================================================================
ERROR: test_factor4 (test_formula.TestFormula)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_formula.py",
line 239, in test_factor4
m = fac.main_effect(reference=2)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/formula.py",
line 273, in main_effect
reference = names.index(reference)
ValueError: list.index(x): x not in list
======================================================================
ERROR: test_huber (test_scale.TestScale)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_scale.py",
line 35, in test_huber
m = scale.huber(X)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 82, in __call__
for donothing in self:
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 102, in next
scale = N.sum(subset * (a - mu)**2, axis=self.axis) /
(self.n * Huber.gamma - N.sum(1. - subset, axis=self.axis)
* Huber.c**2)
File
"/usr/lib/python2.4/site-packages/numpy/core/fromnumeric.py",
line 979, in sum
return sum(axis, dtype, out)
TypeError: only length-1 arrays can be converted to Python
scalars
======================================================================
ERROR: test_huberaxes (test_scale.TestScale)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_scale.py",
line 40, in test_huberaxes
m = scale.huber(X, axis=0)
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 82, in __call__
for donothing in self:
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/robust/scale.py",
line 102, in next
scale = N.sum(subset * (a - mu)**2, axis=self.axis) /
(self.n * Huber.gamma - N.sum(1. - subset, axis=self.axis)
* Huber.c**2)
File
"/usr/lib/python2.4/site-packages/numpy/core/fromnumeric.py",
line 979, in sum
return sum(axis, dtype, out)
TypeError: only length-1 arrays can be converted to Python
scalars
======================================================================
FAIL: test_imresize (test_pilutil.TestPILUtil)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/testing/decorators.py",
line 83, in skipper
return f(*args, **kwargs)
File
"/usr/lib/python2.4/site-packages/scipy/misc/tests/test_pilutil.py",
line 25, in test_imresize
assert_equal(im1.shape,(11,22))
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 137, in assert_equal
assert_equal(len(actual),len(desired),err_msg,verbose)
File
"/usr/lib/python2.4/site-packages/numpy/testing/utils.py",
line 145, in assert_equal
assert desired == actual, msg
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 2
======================================================================
FAIL: test_namespace (test_formula.TestFormula)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/scipy/stats/models/tests/test_formula.py",
line 119, in test_namespace
self.assertEqual(xx.namespace, Y.namespace)
AssertionError: {} != {'Y': array([ 0, 2, 4, 6, 8, 10,
12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38,
40,
42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64,
66, 68, 70, 72, 74, 76, 78, 80, 82,
84, 86, 88, 90, 92, 94, 96, 98]), 'X': array([ 0,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
33, 34, 35, 36, 37, 38, 39, 40, 41,
42, 43, 44, 45, 46, 47, 48, 49])}
----------------------------------------------------------------------
Ran 2165 tests in 106.200s
FAILED (failures=2, errors=5)
>>> scipy.__version__
'0.7.0.dev4195'
More information about the Scipy-dev
mailing list