summaryrefslogtreecommitdiffstats
path: root/Wrappers/Python
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers/Python')
-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 = []