diff options
author | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-14 14:54:15 +0000 |
---|---|---|
committer | Edoardo Pasca <edo.paskino@gmail.com> | 2019-03-14 14:54:15 +0000 |
commit | 3879c21f0cf2a7cf7d885ea20f1cc9363c9ecbe8 (patch) | |
tree | c668497bef4f03b2279ed25ed36dfcbcee9bf376 /Wrappers | |
parent | 11af3e2d27d521f1305eb6622d5d614449e7378e (diff) | |
download | framework-3879c21f0cf2a7cf7d885ea20f1cc9363c9ecbe8.tar.gz framework-3879c21f0cf2a7cf7d885ea20f1cc9363c9ecbe8.tar.bz2 framework-3879c21f0cf2a7cf7d885ea20f1cc9363c9ecbe8.tar.xz framework-3879c21f0cf2a7cf7d885ea20f1cc9363c9ecbe8.zip |
fixed test_functions.py
Diffstat (limited to 'Wrappers')
-rw-r--r-- | Wrappers/Python/test/test_functions.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/Wrappers/Python/test/test_functions.py b/Wrappers/Python/test/test_functions.py index 0741d1c..554d400 100644 --- a/Wrappers/Python/test/test_functions.py +++ b/Wrappers/Python/test/test_functions.py @@ -50,14 +50,8 @@ class TestFunction(unittest.TestCase): d = ImageData(np.random.randint(10, size=ag)) - f = mixed_L12Norm(alpha = 1).composition_with(op1) g = L2NormSq(alpha=0.5, b=noisy_data) - # Compare call of f - a1 = ImageData(op1.direct(d).power(2).sum(axis=0)).sqrt().sum() - #print(a1, f(d)) - self.assertEqual (a1, f(d)) - # Compare call of g a2 = g.alpha*(d - noisy_data).power(2).sum() #print(a2, g(d)) |