summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2019-03-11 13:30:07 -0400
committerEdoardo Pasca <edo.paskino@gmail.com>2019-03-11 13:30:07 -0400
commit8c248538a839dd34fb5599bcb126fe8d2f395fa5 (patch)
tree22df7af643600a75ba2c06218dc9fbe1112557a5
parent431cc82f3b09c337ec4d46e7c1d21a0a1b0dbc35 (diff)
downloadframework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.gz
framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.bz2
framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.tar.xz
framework-8c248538a839dd34fb5599bcb126fe8d2f395fa5.zip
bugfix in adjoint
-rwxr-xr-xWrappers/Python/ccpi/optimisation/operators/BlockOperator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py b/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py
index 8298c03..21ea104 100755
--- a/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py
+++ b/Wrappers/Python/ccpi/optimisation/operators/BlockOperator.py
@@ -91,7 +91,7 @@ class BlockOperator(Operator):
Raises: ValueError if the contained Operators are not linear
'''
- if not functools.reduce(lambda x,y: x and y, self.operators.is_linear(), True):
+ if not functools.reduce(lambda x, y: x and y.is_linear(), self.operators, True):
raise ValueError('Not all operators in Block are linear.')
shape = self.get_output_shape(x.shape, adjoint=True)
res = []