summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2019-04-10 11:11:39 +0100
committerepapoutsellis <epapoutsellis@gmail.com>2019-04-10 11:11:39 +0100
commitebff46e78ce4ecc442c43fe44d4049d69bc8cc0a (patch)
treebb656995de4cd961a1d74f4d19df3e46d14e09bc
parentbc7b43bfab120134ff761de707202aad10883fbe (diff)
downloadframework-ebff46e78ce4ecc442c43fe44d4049d69bc8cc0a.tar.gz
framework-ebff46e78ce4ecc442c43fe44d4049d69bc8cc0a.tar.bz2
framework-ebff46e78ce4ecc442c43fe44d4049d69bc8cc0a.tar.xz
framework-ebff46e78ce4ecc442c43fe44d4049d69bc8cc0a.zip
wip for with and without operators, functions
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py b/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
index a74a215..14105b5 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
@@ -124,8 +124,14 @@ if __name__ == '__main__':
res_out = B.range_geometry().allocate()
f.proximal_conjugate( U, tau, out = res_out)
- numpy.testing.assert_array_almost_equal(res_no_out[0].as_array(), \
- res_out[0].as_array(), decimal=4)
+ numpy.testing.assert_array_almost_equal(res_no_out[0][0].as_array(), \
+ res_out[0][0].as_array(), decimal=4)
+
+ numpy.testing.assert_array_almost_equal(res_no_out[0][1].as_array(), \
+ res_out[0][1].as_array(), decimal=4)
+
+ numpy.testing.assert_array_almost_equal(res_no_out[1].as_array(), \
+ res_out[1].as_array(), decimal=4)