summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python/conda-recipe
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-02-01 11:39:59 +0000
committerGitHub <noreply@github.com>2019-02-01 11:39:59 +0000
commit49b2f869dd71943ee75855e5f14225075d7b94f8 (patch)
treeb01c77d91ae335efed77518406e42b2c3121e193 /Wrappers/Python/conda-recipe
parent7defd0c6cb8dd0d8443ea2fd146ba80c1aa51ee7 (diff)
downloadregularization-49b2f869dd71943ee75855e5f14225075d7b94f8.tar.gz
regularization-49b2f869dd71943ee75855e5f14225075d7b94f8.tar.bz2
regularization-49b2f869dd71943ee75855e5f14225075d7b94f8.tar.xz
regularization-49b2f869dd71943ee75855e5f14225075d7b94f8.zip
update calls to Diff4th
Diffstat (limited to 'Wrappers/Python/conda-recipe')
-rwxr-xr-xWrappers/Python/conda-recipe/run_test.py8
1 files changed, 4 insertions, 4 deletions
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)