[SciPy-User] FAIL: gaussian filter 3
Nils Wagner
nwagner at iam.uni-stuttgart.de
Sat Nov 20 10:29:06 EST 2010
On Sat, 20 Nov 2010 09:05:38 -0600
Warren Weckesser <warren.weckesser at enthought.com> wrote:
> On Sat, Nov 20, 2010 at 5:15 AM, Nils Wagner
> <nwagner at iam.uni-stuttgart.de>wrote:
>
>> Hi all,
>>
>> is this a known issue ?
>>
>> ======================================================================
>> FAIL: gaussian filter 3
>> ----------------------------------------------------------------------
>> 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/ndimage/tests/test_ndimage.py",
>> line 468, in test_gauss03
>> assert_almost_equal(output.sum(), input.sum())
>> File
>> "/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
>> line 463, in assert_almost_equal
>> raise AssertionError(msg)
>> AssertionError:
>> Arrays are not almost equal
>> ACTUAL: 49993304.0
>> DESIRED: 49992896.0
>>
>>
>
> Hi Nils,
>
> Thanks for reporting the problem. It looks like this
>failure was introduced
> in r6837, when the ndimage tests were cleaned up. The
>old version of
> test_gauss03() computed the sums of the 32 bit floats
>using 64 bit
> accumulators, but the new version did not. However,
>simply changing the
> size of the accumulators did not fix the test, because
>r6837 actually fixed
> a bug in the old test: the old test was testing the
>difference of the actual
> and expected sums, rather than the *absolute value* of
>the difference. It
> turns out that the default precision requested by the
>test was too high.
>
> The test has been fixed in r6927.
>
> Warren
Hi Warren,
Thank you for your prompt response.
There is still one failure ...
======================================================================
FAIL: line-search Newton conjugate gradient optimization
routine
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/home/nwagner/local/lib64/python2.6/site-packages/scipy/optimize/tests/test_optimize.py",
line 177, in test_ncg
assert_(self.gradcalls == 18, self.gradcalls) # 0.8.0
File
"/home/nwagner/local/lib64/python2.6/site-packages/numpy/testing/utils.py",
line 34, in assert_
raise AssertionError(msg)
AssertionError: 16
----------------------------------------------------------------------
Ran 4842 tests in 142.173s
FAILED (KNOWNFAIL=13, SKIP=28, failures=1)
Cheers,
Nils
More information about the SciPy-User
mailing list