Merge pull request #59 from cgohlke/patch-2

Remove print statements from tests
This commit is contained in:
Stefan van der Walt
2011-10-12 15:42:19 -07:00
2 changed files with 0 additions and 5 deletions
@@ -388,11 +388,9 @@ class TestWatershed(unittest.TestCase):
before = time.clock()
out = watershed(image, markers, self.eight)
elapsed = time.clock() - before
print "Fast watershed ran a megapixel image in %f seconds"%(elapsed)
before = time.clock()
out = scipy.ndimage.watershed_ift(image.astype(np.uint16), markers, self.eight)
elapsed = time.clock() - before
print "Scipy watershed ran a megapixel image in %f seconds"%(elapsed)
class TestIsLocalMaximum(unittest.TestCase):
@@ -39,8 +39,6 @@ def test_fast_homography():
H[:2, 2] = [tx, ty]
for mode in ('constant', 'mirror', 'wrap'):
print 'Transform mode:', mode
p0 = homography(img, H, mode=mode, order=1)
p1 = fast_homography(img, H, mode=mode)
p1 = np.round(p1)
@@ -54,7 +52,6 @@ def test_fast_homography():
## plt.show()
d = np.mean(np.abs(p0 - p1))
print "delta=", d
assert d < 0.2