summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
authorDaniil Kazantsev <dkazanc@hotmail.com>2018-12-19 11:21:16 +0000
committerDaniil Kazantsev <dkazanc@hotmail.com>2018-12-19 11:21:16 +0000
commit4af4096096af9f478e2a3d463b9dfcfc200454ff (patch)
treeb0cf6be59920bd5996d55e0422244b40f8592f8f /Wrappers/Python
parent8d01593b6580881ff554824ba598720202b0eb7b (diff)
downloadregularization-4af4096096af9f478e2a3d463b9dfcfc200454ff.tar.gz
regularization-4af4096096af9f478e2a3d463b9dfcfc200454ff.tar.bz2
regularization-4af4096096af9f478e2a3d463b9dfcfc200454ff.tar.xz
regularization-4af4096096af9f478e2a3d463b9dfcfc200454ff.zip
fixes issues in tests
Diffstat (limited to 'Wrappers/Python')
-rwxr-xr-xWrappers/Python/conda-recipe/run_test.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Wrappers/Python/conda-recipe/run_test.py b/Wrappers/Python/conda-recipe/run_test.py
index abc3e1b..cfb3f53 100755
--- a/Wrappers/Python/conda-recipe/run_test.py
+++ b/Wrappers/Python/conda-recipe/run_test.py
@@ -37,7 +37,7 @@ class TestRegularisers(unittest.TestCase):
def test_ROF_TV_CPU_vs_GPU(self):
- print ("tomas debug test function")
+ #print ("tomas debug test function")
print(__name__)
filename = os.path.join("lena_gray_512.tif")
plt = TiffReader()
@@ -65,11 +65,11 @@ class TestRegularisers(unittest.TestCase):
# set parameters
pars = {'algorithm': ROF_TV, \
- 'input' : u0,\
- 'regularisation_parameter':0.04,\
- 'number_of_iterations': 1000,\
- 'time_marching_parameter': 0.0001
- }
+ 'input' : u0,\
+ 'regularisation_parameter':0.04,\
+ 'number_of_iterations': 2500,\
+ 'time_marching_parameter': 0.00002
+ }
print ("#############ROF TV CPU####################")
start_time = timeit.default_timer()
rof_cpu = ROF_TV(pars['input'],
@@ -607,8 +607,8 @@ class TestRegularisers(unittest.TestCase):
'input' : u0,\
'refdata' : u_ref,\
'regularisation_parameter':0.04, \
- 'number_of_iterations' :2000 ,\
- 'tolerance_constant':1e-06,\
+ 'number_of_iterations' :1000 ,\
+ 'tolerance_constant':1e-07,\
'eta_const':0.2,\
'methodTV': 0 ,\
'nonneg': 0 ,\