[Scipy-svn] r4155 - trunk/scipy/cluster/tests
scipy-svn@scip...
scipy-svn@scip...
Sun Apr 20 13:24:43 CDT 2008
Author: stefan
Date: 2008-04-20 13:24:29 -0500 (Sun, 20 Apr 2008)
New Revision: 4155
Modified:
trunk/scipy/cluster/tests/test_hierarchy.py
Log:
Use dtype instead of 'dtype'.
Modified: trunk/scipy/cluster/tests/test_hierarchy.py
===================================================================
--- trunk/scipy/cluster/tests/test_hierarchy.py 2008-04-20 12:15:19 UTC (rev 4154)
+++ trunk/scipy/cluster/tests/test_hierarchy.py 2008-04-20 18:24:29 UTC (rev 4155)
@@ -91,7 +91,7 @@
def test_pdist_raises_type_error_float32(self):
"Testing whether passing a float32 observation array generates an exception."
- X = numpy.zeros((10, 10), dtype='float32')
+ X = numpy.zeros((10, 10), dtype=numpy.float32)
try:
pdist(X, 'euclidean')
except TypeError:
@@ -101,7 +101,7 @@
def test_pdist_raises_type_error_float96(self):
"Testing whether passing a float96 observation array generates an exception."
- X = numpy.zeros((10, 10), dtype='float96')
+ X = numpy.zeros((10, 10), dtype=numpy.float96)
try:
pdist(X, 'euclidean')
except TypeError:
@@ -112,7 +112,7 @@
def test_pdist_var_raises_type_error_float32(self):
"Testing whether passing a float32 variance matrix generates an exception."
X = numpy.zeros((10, 10))
- V = numpy.zeros((10, 10), dtype='float32')
+ V = numpy.zeros((10, 10), dtype=numpy.float32)
try:
pdist(X, 'seuclidean', V=V)
except TypeError:
@@ -123,7 +123,7 @@
def test_pdist_var_raises_type_error_float96(self):
"Testing whether passing a float96 variance matrix generates an exception."
X = numpy.zeros((10, 10))
- V = numpy.zeros((10, 10), dtype='float96')
+ V = numpy.zeros((10, 10), dtype=numpy.float96)
try:
pdist(X, 'seuclidean', V=V)
@@ -135,7 +135,7 @@
def test_pdist_ivar_raises_type_error_float32(self):
"Testing whether passing a float32 variance matrix generates an exception."
X = numpy.zeros((10, 10))
- VI = numpy.zeros((10, 10), dtype='float32')
+ VI = numpy.zeros((10, 10), dtype=numpy.float32)
try:
pdist(X, 'mahalanobis', VI=VI)
except TypeError:
@@ -146,7 +146,7 @@
def test_pdist_ivar_raises_type_error_float96(self):
"Testing whether passing a float96 variance matrix generates an exception."
X = numpy.zeros((10, 10))
- VI = numpy.zeros((10, 10), dtype='float96')
+ VI = numpy.zeros((10, 10), dtype=numpy.float96)
try:
pdist(X, 'mahalanobis', VI=VI)
More information about the Scipy-svn
mailing list