From 0d409c14b7b4a21835abf812c8e7ef931c8dbace Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Mon, 13 May 2019 16:17:19 +0100 Subject: fix order super --- Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Wrappers/Python') 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): -- cgit v1.2.3