summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py b/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
index 0836324..4178e6c 100644
--- a/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
+++ b/Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py
@@ -20,11 +20,14 @@ class BlockFunction(Function):
'''
def __init__(self, *functions):
-
+
+ super(BlockFunction, self).__init__()
self.functions = functions
self.length = len(self.functions)
- super(BlockFunction, self).__init__()
+ self.L = self.functions.L
+
+
def __call__(self, x):