diff options
author | epapoutsellis <epapoutsellis@gmail.com> | 2019-05-13 16:17:19 +0100 |
---|---|---|
committer | epapoutsellis <epapoutsellis@gmail.com> | 2019-05-13 16:17:19 +0100 |
commit | 0d409c14b7b4a21835abf812c8e7ef931c8dbace (patch) | |
tree | 65d7a3b248aa3d675c3a813171497ef49e8b06f4 /Wrappers | |
parent | 159743ca3c40a08fd8c2a858cbd8fd4a30b83728 (diff) | |
download | framework-0d409c14b7b4a21835abf812c8e7ef931c8dbace.tar.gz framework-0d409c14b7b4a21835abf812c8e7ef931c8dbace.tar.bz2 framework-0d409c14b7b4a21835abf812c8e7ef931c8dbace.tar.xz framework-0d409c14b7b4a21835abf812c8e7ef931c8dbace.zip |
fix order super
Diffstat (limited to 'Wrappers')
-rw-r--r-- | Wrappers/Python/ccpi/optimisation/functions/BlockFunction.py | 7 |
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): |