summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/Python/__init__.py0
-rw-r--r--src/__init__.py0
-rw-r--r--test/test_CPU_regularisers.py15
3 files changed, 0 insertions, 15 deletions
diff --git a/src/Python/__init__.py b/src/Python/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/Python/__init__.py
diff --git a/src/__init__.py b/src/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/__init__.py
diff --git a/test/test_CPU_regularisers.py b/test/test_CPU_regularisers.py
index 552e64e..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
@@ -127,7 +114,5 @@ class TestRegularisers(unittest.TestCase):
# now test that it generates some expected output
self.assertAlmostEqual(rms, 0.02, delta=0.01)
-
-
if __name__ == '__main__':
unittest.main()