Skip to content
Snippets Groups Projects
Commit 80808e38 authored by Stefano Borini's avatar Stefano Borini Committed by GitHub
Browse files

Merge pull request #100 from force-h2020/fix-incorrect-base-mco-comm

Added incorrect calls to base constructor of MCOCommunicator and BaseMCOParameterFactory.
parents dddde7bf 54a64781
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,9 @@ class BaseMCOCommunicator(ABCHasStrictTraits):
#: A reference to the factory
factory = Instance(IMCOFactory)
def __init__(self, factory):
def __init__(self, factory, *args, **kwargs):
self.factory = factory
super(BaseMCOCommunicator, self).__init__(*args, **kwargs)
@abc.abstractmethod
def receive_from_mco(self, model):
......
......@@ -27,9 +27,9 @@ class BaseMCOParameterFactory(HasStrictTraits):
# The model class to instantiate when create_model is called.
model_class = Type('BaseMCOParameter')
def __init__(self, mco_factory):
def __init__(self, mco_factory, *args, **kwargs):
self.mco_factory = mco_factory
super(BaseMCOParameterFactory, self).__init__()
super(BaseMCOParameterFactory, self).__init__(*args, **kwargs)
def create_model(self, data_values=None):
"""Creates the instance of the model class and returns it.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment