From 49b2f869dd71943ee75855e5f14225075d7b94f8 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Fri, 1 Feb 2019 11:39:59 +0000 Subject: update calls to Diff4th --- Wrappers/Python/conda-recipe/run_test.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Wrappers') diff --git a/Wrappers/Python/conda-recipe/run_test.py b/Wrappers/Python/conda-recipe/run_test.py index 3f1da77..37b9dcc 100755 --- a/Wrappers/Python/conda-recipe/run_test.py +++ b/Wrappers/Python/conda-recipe/run_test.py @@ -530,7 +530,7 @@ class TestRegularisers(unittest.TestCase): print ("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%") # set parameters - pars = {'algorithm' : DIFF4th, \ + pars = {'algorithm' : Diff4th, \ 'input' : u0,\ 'regularisation_parameter':3.5, \ 'edge_parameter':0.02,\ @@ -540,7 +540,7 @@ class TestRegularisers(unittest.TestCase): print ("#############Diff4th CPU####################") start_time = timeit.default_timer() - diff4th_cpu = DIFF4th(pars['input'], + diff4th_cpu = Diff4th(pars['input'], pars['regularisation_parameter'], pars['edge_parameter'], pars['number_of_iterations'], @@ -555,7 +555,7 @@ class TestRegularisers(unittest.TestCase): print ("##############Diff4th GPU##################") start_time = timeit.default_timer() try: - diff4th_gpu = DIFF4th(pars['input'], + diff4th_gpu = Diff4th(pars['input'], pars['regularisation_parameter'], pars['edge_parameter'], pars['number_of_iterations'], @@ -565,7 +565,7 @@ class TestRegularisers(unittest.TestCase): self.skipTest("Results not comparable. GPU computing error.") rms = rmse(Im, diff4th_gpu) pars['rmse'] = rms - pars['algorithm'] = DIFF4th + pars['algorithm'] = Diff4th txtstr = printParametersToString(pars) txtstr += "%s = %.3fs" % ('elapsed time',timeit.default_timer() - start_time) print (txtstr) -- cgit v1.2.3