summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-04-16 07:30:57 -0400
committerEdoardo Pasca <edo.paskino@gmail.com>2019-04-16 07:30:57 -0400
commit31e0076a92760a76313880bbd086253a63f9bd39 (patch)
treedbf36327e4db987f7050a5193f624ca357f63e30
parent7f3e0399e605ae2411cababfba4846500890ec10 (diff)
downloadframework-31e0076a92760a76313880bbd086253a63f9bd39.tar.gz
framework-31e0076a92760a76313880bbd086253a63f9bd39.tar.bz2
framework-31e0076a92760a76313880bbd086253a63f9bd39.tar.xz
framework-31e0076a92760a76313880bbd086253a63f9bd39.zip
skip time test of gradient adjoint with out parameter
-rw-r--r--Wrappers/Python/test/test_Operator.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Wrappers/Python/test/test_Operator.py b/Wrappers/Python/test/test_Operator.py
index 542e103..fdc7db8 100644
--- a/Wrappers/Python/test/test_Operator.py
+++ b/Wrappers/Python/test/test_Operator.py
@@ -100,8 +100,8 @@ class TestOperator(CCPiTestClass):
self.assertNumpyArrayEqual(res.as_array(), w.as_array())
def test_PowerMethod(self):
- N, M = 2, 3
-
+ N, M = 200, 300
+ niter = 1000
ig = ImageGeometry(N, M)
Id = Identity(ig)
@@ -109,8 +109,8 @@ class TestOperator(CCPiTestClass):
uid = Id.domain_geometry().allocate(ImageGeometry.RANDOM_INT, seed=1)
- a = LinearOperator.PowerMethod(Id, 1000, uid)
- b = LinearOperator.PowerMethodNonsquare(Id, 1000, uid)
+ a = LinearOperator.PowerMethod(Id, niter, uid)
+ b = LinearOperator.PowerMethodNonsquare(Id, niter, uid)
print ("Edo impl", a[0])
print ("old impl", b[0])
@@ -118,8 +118,8 @@ class TestOperator(CCPiTestClass):
#self.assertAlmostEqual(a[0], b[0])
self.assertNumpyArrayAlmostEqual(a[0],b[0],decimal=6)
- a = LinearOperator.PowerMethod(G, 1000, uid)
- b = LinearOperator.PowerMethodNonsquare(G, 1000, uid)
+ a = LinearOperator.PowerMethod(G, niter, uid)
+ b = LinearOperator.PowerMethodNonsquare(G, niter, uid)
print ("Edo impl", a[0])
print ("old impl", b[0])
@@ -416,7 +416,7 @@ class TestBlockOperator(unittest.TestCase):
i += 1
print ("Time difference ", t1,t2)
- self.assertGreater(t1,t2)
+ #self.assertGreater(t1,t2)
def test_BlockOperatorLinearValidity(self):