[SciPy-Dev] spatial.test() failure

Warren Weckesser warren.weckesser@enthought....
Tue Sep 28 18:24:07 CDT 2010


  On 9/28/10 1:08 PM, Nils Wagner wrote:
> On Mon, 27 Sep 2010 21:13:21 -0500
>    Warren Weckesser<warren.weckesser@enthought.com>  wrote:
>>   On 9/26/10 12:13 AM, josef.pktd@gmail.com wrote:
>>> On Sun, Sep 26, 2010 at 1:05 AM, Warren Weckesser
>>> <warren.weckesser@enthought.com>   wrote:
>>>> Nils Wagner wrote:
>>>>>>>> from scipy import spatial
>>>>>>>> spatial.test()
>>>>>>>>
>>>>> Running unit tests for scipy.spatial
>>>>> NumPy version 2.0.0.dev8714
>>>>> NumPy is installed in
>>>>> /home/nwagner/local/lib64/python2.6/site-packages/numpy
>>>>> SciPy version 0.9.0.dev6803
>>>>> SciPy is installed in
>>>>> /home/nwagner/local/lib64/python2.6/site-packages/scipy
>>>>> Python version 2.6.5 (r265:79063, Jul  5 2010, 11:46:13)
>>>>> [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
>>>>> nose version 0.11.2
>>>>>
>>>>> ............................................................................................................................F..................................................................................................................................................
>>>>> ======================================================================
>>>>> FAIL: Tests pdist(X, 'minkowski') on iris data.
>>>>> (float32)
>>>>> ----------------------------------------------------------------------
>>>>> Traceback (most recent call last):
>>>>>      File
>>>>>
>>>>> "/home/nwagner/local/lib64/python2.6/site-packages/scipy/spatial/tests/test_distance.py",
>>>>> line 837, in test_pdist_minkowski_3_2_iris_float32
>>>>>        self.failUnless(within_tol(Y_test1, Y_right, eps))
>>>>> AssertionError
>>>>>
>>>>> ----------------------------------------------------------------------
>>>>> Ran 271 tests in 38.005s
>>>>>
>>>>> FAILED (failures=1)
>>>>> <nose.result.TextTestResult run=271 errors=0 failures=1>
>>>>>
>>>> In r6799, the names of some tests were changed so there
>>>> are no longer
>>>> duplicated test function names.  This means tests are
>>>> now being run that
>>>> had previously been shadowed by the duplicate names.  I
>>>> also get the
>>>> failure of the test
>>>> test_pdist_minkowski_3_2_iris_float32().  I created
>>>> a ticket for the problem:
>>>> http://projects.scipy.org/scipy/ticket/1278
>>>>
>>>> Warren
>>>>
>>>>
>>>> If the tolerance in the test is changed from eps=1e-7 to
>>>> 1e-6, the test
>>>> passes on my computer.  Several other float32 tests
>>>> using the iris data also
>>>> use 1e-6.  I added a note about the tolerance of similar
>>>> tests in the
>>>> ticket.  It does not seem unreasonable to simply loosen
>>>> the tolerance a bit.
>>>> Any objections?
>>> No, sounds reasonable.
>>>
>>> Josef
>>>
>> Done, r6827.
>>
>> For anyone using trunk, could you check whether or not
>> test_pdist_minkowski_3_2_iris_float32 now passes?
>>
>> Warren
>>
>>
> Warren,
>
> It works fine for me.
>
> Thank you very much !
>


That's good to hear.  Thanks for reporting back (and for the original 
report of the failure).

Warren



> NumPy version 2.0.0.dev8715
> NumPy is installed in
> /home/nwagner/local/lib64/python2.6/site-packages/numpy
> SciPy version 0.9.0.dev6827
> SciPy is installed in
> /home/nwagner/local/lib64/python2.6/site-packages/scipy
> Python version 2.6.5 (r265:79063, Jul  5 2010, 11:46:13)
> [GCC 4.5.0 20100604 [gcc-4_5-branch revision 160292]]
> nose version 0.11.2
> ...............................................................................................................................................................................................................................................................................
> ----------------------------------------------------------------------
> Ran 271 tests in 33.979s
>
> OK
> <nose.result.TextTestResult run=271 errors=0 failures=0>
>
> Cheers,
>                     Nils
> _______________________________________________
> SciPy-Dev mailing list
> SciPy-Dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-dev



More information about the SciPy-Dev mailing list