[Scipy-svn] r4774 - trunk/scipy/cluster/tests

scipy-svn@scip... scipy-svn@scip...
Sat Oct 4 22:37:15 CDT 2008


Author: alan.mcintyre
Date: 2008-10-04 22:36:54 -0500 (Sat, 04 Oct 2008)
New Revision: 4774

Modified:
   trunk/scipy/cluster/tests/test_distance.py
Log:
Don't print debug information for low verbosity.


Modified: trunk/scipy/cluster/tests/test_distance.py
===================================================================
--- trunk/scipy/cluster/tests/test_distance.py	2008-10-05 02:28:14 UTC (rev 4773)
+++ trunk/scipy/cluster/tests/test_distance.py	2008-10-05 03:36:54 UTC (rev 4774)
@@ -243,7 +243,8 @@
         w = 1.0 / X1.std(axis=0)
         Y1 = cdist(X1, X2, 'wminkowski', p=3.8, w=w)
         Y2 = cdist(X1, X2, 'test_wminkowski', p=3.8, w=w)
-        print (Y1-Y2).max()
+        if verbose > 2:
+            print (Y1-Y2).max()
         self.failUnless(within_tol(Y1, Y2, eps))
 
     def test_cdist_wminkowski_random_p4d6(self):
@@ -255,7 +256,8 @@
         w = 1.0 / X1.std(axis=0)
         Y1 = cdist(X1, X2, 'wminkowski', p=4.6, w=w)
         Y2 = cdist(X1, X2, 'test_wminkowski', p=4.6, w=w)
-        print (Y1-Y2).max()
+        if verbose > 2:
+            print (Y1-Y2).max()
         self.failUnless(within_tol(Y1, Y2, eps))
 
     def test_cdist_wminkowski_random_p1d23(self):
@@ -267,7 +269,8 @@
         w = 1.0 / X1.std(axis=0)
         Y1 = cdist(X1, X2, 'wminkowski', p=1.23, w=w)
         Y2 = cdist(X1, X2, 'test_wminkowski', p=1.23, w=w)
-        print (Y1-Y2).max()
+        if verbose > 2:
+            print (Y1-Y2).max()
         self.failUnless(within_tol(Y1, Y2, eps))
 
 



More information about the Scipy-svn mailing list