[SciPy-dev] New scipy.test() errors in trunk

josef.pktd at gmail.com josef.pktd at gmail.com
Fri Feb 19 11:54:29 EST 2010


On Fri, Feb 19, 2010 at 11:49 AM,  <josef.pktd at gmail.com> wrote:
> Are you running scipy against numpy trunk?
>
> np.histogram(rvs,histsupp,new=True)
>
> I think this is a very recent change that will need adjustments.
> However, it might be difficult to write code that works with numpy 1.3
> and numpy 1.5, with or without "new" keyword. I need to check when the
> default for np.histogram changed.

No, this won't matter, since scipy trunk requires at least numpy 1.4

Thanks for reporting,

Josef

>
> Josef
>
>
> On Fri, Feb 19, 2010 at 11:41 AM, Nils Wagner
> <nwagner at iam.uni-stuttgart.de> wrote:
>> ======================================================================
>> ERROR: Regression test for #880: empty array for zi
>> crashes.
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 458, in test_empty_zi
>>     y, zf = lfilter(b, a, x, zi=zi)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 603, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis, zi)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_rank1
>> (test_signaltools.TestLinearFilterDecimal)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 360, in test_rank1
>>     assert_array_almost_equal(lfilter(b, a, x), y_r)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 601, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_rank2
>> (test_signaltools.TestLinearFilterDecimal)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 401, in test_rank2
>>     y = lfilter(b, a, x, axis = 0)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 601, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_rank2_init_cond_a0
>> (test_signaltools.TestLinearFilterDecimal)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 435, in test_rank2_init_cond_a0
>>     y, zf = lfilter(b, a, x, axis = 0, zi = np.ones((1,
>> 3)))
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 603, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis, zi)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_rank2_init_cond_a1
>> (test_signaltools.TestLinearFilterDecimal)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 419, in test_rank2_init_cond_a1
>>     y, zf = lfilter(b, a, x, axis = 1, zi = np.ones((4,
>> 1)))
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 603, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis, zi)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_rank3
>> (test_signaltools.TestLinearFilterDecimal)
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/tests/test_signaltools.py",
>> line 447, in test_rank3
>>     y = lfilter(b, a, x)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/signal/signaltools.py",
>> line 601, in lfilter
>>     return sigtools._linear_filter(b, a, x, axis)
>> NotImplementedError: input type 'object' not supported
>>
>>
>> ======================================================================
>> ERROR: test_mpmath.test_hyp2f1_real_some
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/decorators.py",
>> line 146, in skipper_func
>>     return f(*args, **kwargs)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/test_mpmath.py",
>> line 117, in test_hyp2f1_real_some
>>     except (TypeError, mpmath.libhyper.NoConvergence):
>> AttributeError: 'module' object has no attribute
>> 'libhyper'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.bernoulli_gen
>> object at 0x2636ad0>, (0.29999999999999999,), array([0, 0,
>> 0, ..., 1, 0, 0]), 0.01, 'bernoulli chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.binom_gen
>> object at 0x26368d0>, (5, 0.40000000000000002), array([2,
>> 2, 2, ..., 4, 1, 3]), 0.01, 'binom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.boltzmann_gen
>> object at 0x26ec590>, (1.3999999999999999, 19), array([0,
>> 0, 0, ..., 2, 0, 0]), 0.01, 'boltzmann chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.dlaplace_gen
>> object at 0x26eca50>, (0.80000000000000004,), array([ 0,
>>  0,  0, ...,  4, -1,  0]), 0.01, 'dlaplace chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.geom_gen
>> object at 0x2636dd0>, (0.5,), array([1, 1, 2, ..., 6, 1,
>> 2]), 0.01, 'geom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.hypergeom_gen
>> object at 0x2636f50>, (30, 12, 6), array([1, 1, 4, ..., 3,
>> 2, 2]), 0.01, 'hypergeom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.hypergeom_gen
>> object at 0x2636f50>, (21, 3, 12), array([2, 3, 2, ..., 2,
>> 2, 1]), 0.01, 'hypergeom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.hypergeom_gen
>> object at 0x2636f50>, (21, 18, 11), array([ 9,  8,  9,
>> ..., 10, 10, 10]), 0.01, 'hypergeom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.logser_gen
>> object at 0x26ec110>, (0.59999999999999998,), array([1, 1,
>> 1, ..., 1, 1, 4]), 0.01, 'logser chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.nbinom_gen
>> object at 0x2636c50>, (5, 0.5), array([0, 2, 6, ..., 3, 3,
>> 3]), 0.01, 'nbinom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.nbinom_gen
>> object at 0x2636c50>, (0.40000000000000002,
>> 0.40000000000000002), array([0, 0, 0, ..., 0, 0, 0]),
>> 0.01, 'nbinom chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.planck_gen
>> object at 0x26ec410>, (0.51000000000000001,), array([1, 1,
>> 1, ..., 7, 0, 2]), 0.01, 'planck chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.poisson_gen
>> object at 0x26ec290>, (0.59999999999999998,), array([0, 0,
>> 0, ..., 1, 0, 0]), 0.01, 'poisson chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.randint_gen
>> object at 0x26ec710>, (7, 31), array([27, 10, 15, ..., 16,
>>  9, 17]), 0.01, 'randint chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.skellam_gen
>> object at 0x26ecbd0>, (15, 8), array([ 4,  6, 10, ...,  5,
>> 14, 15]), 0.01, 'skellam chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> ERROR:
>> test_discrete_basic.test_discrete_basic(<scipy.stats.distributions.zipf_gen
>> object at 0x26ec8d0>, (4,), array([1, 1, 1, ..., 1, 1,
>> 1]), 0.01, 'zipf chisquare')
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/stats/tests/test_discrete_basic.py",
>> line 252, in check_discrete_chisquare
>>     freq,hsupp = np.histogram(rvs,histsupp,new=True)
>> TypeError: histogram() got an unexpected keyword argument
>> 'new'
>>
>> ======================================================================
>> FAIL: test_lambertw.test_values
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/test_lambertw.py",
>> line 80, in test_values
>>     FuncData(w, data, (0,1), 2, rtol=1e-10,
>> atol=1e-13).check()
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/testutils.py",
>> line 187, in check
>>     assert False, "\n".join(msg)
>> AssertionError:
>> Max |adiff|: 1.77636e-15
>> Max |rdiff|: 2.06237e-16
>> Bad results for the following points (in output 0):
>> (-0.40000000000000002+0.40000000000000002j)
>>                             0j =>
>>                   (nan+nan*j) !=
>> (-0.10396515323290657+0.61899273315171632j)  (rdiff
>>                           0.0)
>> (-0.44800000000000001+0.40000000000000002j)
>>                             0j =>
>>                   (nan+nan*j) !=
>> (-0.11855133765652383+0.66570534313583418j)  (rdiff
>>                           0.0)
>> (-0.44800000000000001-0.40000000000000002j)
>>                             0j =>
>>                   (nan+nan*j) !=
>> (-0.11855133765652383-0.66570534313583418j)  (rdiff
>>                           0.0)
>>
>> ======================================================================
>> FAIL: test_mpmath.test_hyp2f1_some_points_2
>> ----------------------------------------------------------------------
>> Traceback (most recent call last):
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/nose-0.11.2.dev-py2.6.egg/nose/case.py",
>> line 183, in runTest
>>     self.test(*self.arg)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/decorators.py",
>> line 146, in skipper_func
>>     return f(*args, **kwargs)
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/test_mpmath.py",
>> line 106, in test_hyp2f1_some_points_2
>>     FuncData(sc.hyp2f1, dataset, (0,1,2,3), 4,
>> rtol=1e-10).check()
>>   File
>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/special/tests/testutils.py",
>> line 187, in check
>>     assert False, "\n".join(msg)
>> AssertionError:
>> Max |adiff|: 1.48367e-22
>> Max |rdiff|: 0.989172
>> Bad results for the following points (in output 0):
>>                          112.0
>>             5.0999999999999996
>>           -0.90000000000000002
>>           -0.99999000000000005 =>
>>       -1.6241361047970947e-24 !=
>>        -1.499910195656332e-22  (rdiff
>>           0.98917177768708742)
>>
>> ----------------------------------------------------------------------
>> Ran 4332 tests in 76.236s
>>
>> FAILED (KNOWNFAIL=11, SKIP=17, errors=24, failures=2)
>> <nose.result.TextTestResult run=4332 errors=24 failures=2>
>>
>>
>>
>> _______________________________________________
>> SciPy-Dev mailing list
>> SciPy-Dev at scipy.org
>> http://mail.scipy.org/mailman/listinfo/scipy-dev
>>
>



More information about the SciPy-Dev mailing list