[Scipy-svn] r4735 - in trunk/scipy: cluster/tests special/tests

scipy-svn@scip... scipy-svn@scip...
Thu Sep 18 14:57:50 CDT 2008


Author: alan.mcintyre
Date: 2008-09-18 14:57:42 -0500 (Thu, 18 Sep 2008)
New Revision: 4735

Modified:
   trunk/scipy/cluster/tests/test_distance.py
   trunk/scipy/cluster/tests/test_hierarchy.py
   trunk/scipy/cluster/tests/test_vq.py
   trunk/scipy/special/tests/test_basic.py
Log:
Removed unused imports.


Modified: trunk/scipy/cluster/tests/test_distance.py
===================================================================
--- trunk/scipy/cluster/tests/test_distance.py	2008-09-18 19:55:02 UTC (rev 4734)
+++ trunk/scipy/cluster/tests/test_distance.py	2008-09-18 19:57:42 UTC (rev 4735)
@@ -34,16 +34,13 @@
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
 
-import sys
 import os.path
 
 import numpy as np
 from numpy.testing import *
-from scipy.cluster.hierarchy import linkage, from_mlab_linkage, numobs_linkage
-from scipy.cluster.distance import squareform, pdist, cdist, matching, jaccard, dice, sokalsneath, rogerstanimoto, russellrao, yule, numobs_dm, numobs_y
+from scipy.cluster.distance import squareform, pdist, cdist, matching, \
+    jaccard, dice, sokalsneath, rogerstanimoto, russellrao, yule
 
-#from scipy.cluster.hierarchy import pdist, euclidean
-
 _filenames = ["iris.txt",
               "cdist-X1.txt",
               "cdist-X2.txt",

Modified: trunk/scipy/cluster/tests/test_hierarchy.py
===================================================================
--- trunk/scipy/cluster/tests/test_hierarchy.py	2008-09-18 19:55:02 UTC (rev 4734)
+++ trunk/scipy/cluster/tests/test_hierarchy.py	2008-09-18 19:57:42 UTC (rev 4735)
@@ -33,14 +33,13 @@
 # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-import sys
 import os.path
 
 import numpy as np
 from numpy.testing import *
 
 from scipy.cluster.hierarchy import linkage, from_mlab_linkage, numobs_linkage, inconsistent
-from scipy.cluster.distance import squareform, pdist, matching, jaccard, dice, sokalsneath, rogerstanimoto, russellrao, yule, numobs_dm, numobs_y
+from scipy.cluster.distance import squareform, pdist, numobs_dm, numobs_y
 
 _tdist = np.array([[0,    662,  877,  255,  412,  996],
                    [662,  0,    295,  468,  268,  400],

Modified: trunk/scipy/cluster/tests/test_vq.py
===================================================================
--- trunk/scipy/cluster/tests/test_vq.py	2008-09-18 19:55:02 UTC (rev 4734)
+++ trunk/scipy/cluster/tests/test_vq.py	2008-09-18 19:57:42 UTC (rev 4735)
@@ -3,13 +3,12 @@
 # David Cournapeau
 # Last Change: Tue Jun 24 04:00 PM 2008 J
 
-import sys
 import os.path
 
 import numpy as np
 from numpy.testing import *
 
-from scipy.cluster.vq import kmeans, kmeans2, py_vq, py_vq2, _py_vq_1d, vq, ClusterError
+from scipy.cluster.vq import kmeans, kmeans2, py_vq, py_vq2, vq, ClusterError
 try:
     from scipy.cluster import _vq
     TESTC=True

Modified: trunk/scipy/special/tests/test_basic.py
===================================================================
--- trunk/scipy/special/tests/test_basic.py	2008-09-18 19:55:02 UTC (rev 4734)
+++ trunk/scipy/special/tests/test_basic.py	2008-09-18 19:57:42 UTC (rev 4735)
@@ -32,7 +32,7 @@
 #8   test_sh_jacobi
 #8   test_sh_legendre
 
-from numpy import dot, array
+from numpy import array
 
 from numpy.testing import *
 



More information about the Scipy-svn mailing list