diff options
author | Tomas Kulhanek <tomas.kulhanek@stfc.ac.uk> | 2019-02-25 03:58:51 -0500 |
---|---|---|
committer | Tomas Kulhanek <tomas.kulhanek@stfc.ac.uk> | 2019-02-25 03:58:51 -0500 |
commit | fc941e0941facb9437dab667ba3350db071769da (patch) | |
tree | 9b31d3244ec5b655a8ac3d1428c51b9fd26badc1 | |
parent | 047d9e2a7dda92e13414b980a93c3f1724665241 (diff) | |
download | regularization-fc941e0941facb9437dab667ba3350db071769da.tar.gz regularization-fc941e0941facb9437dab667ba3350db071769da.tar.bz2 regularization-fc941e0941facb9437dab667ba3350db071769da.tar.xz regularization-fc941e0941facb9437dab667ba3350db071769da.zip |
UPDATE: unit test
-rw-r--r-- | test/test_CPU_regularisers.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/test_CPU_regularisers.py b/test/test_CPU_regularisers.py index 3a90d49..6af4cd4 100644 --- a/test/test_CPU_regularisers.py +++ b/test/test_CPU_regularisers.py @@ -23,21 +23,8 @@ class TestRegularisers(unittest.TestCase): u_ref = Im + np.random.normal(loc=0, scale=0.01 * Im, size=np.shape(Im)) - # map the u0 u0->u0>0 - # f = np.frompyfunc(lambda x: 0 if x < 0 else x, 1,1) u0 = u0.astype('float32') u_ref = u_ref.astype('float32') - # set parameters - #pars = {'algorithm': alg, \ - # 'input': u0, \ - # 'regularisation_parameter': 0.04, \ - # 'number_of_iterations': noi, \ - # 'tolerance_constant': 0.00001, \ - # 'methodTV': 0, \ - # 'nonneg': 0, \ - # 'printingOut': 0, \ - # 'time_marching_parameter': 0.00002 - # } return Im,u0,u_ref |