Skip to content
Snippets Groups Projects
Commit 9d7ef516 authored by Stefano Borini's avatar Stefano Borini
Browse files

Flake

parent 9bf6a2f6
No related branches found
No related tags found
1 merge request!55Remove application and model from bundles. Added plugin reference.
......@@ -30,7 +30,8 @@ class TestDakotaOptimizer(unittest.TestCase):
opt = DummyDakotaOptimizer(self.bundle)
model = DummyDakotaModel(self.bundle)
model.parameters = [
RangedMCOParameter(mock.Mock(spec=RangedMCOParameterFactory),
RangedMCOParameter(
mock.Mock(spec=RangedMCOParameterFactory),
lower_bound=1,
upper_bound=3,
initial_value=2)
......
......@@ -15,11 +15,7 @@ class IDataSourceBundle(Interface):
plugin = Instance(Plugin)
def create_data_source(self):
"""Factory method.
Must return the bundle-specific BaseDataSource instance.
"""
""""""
def create_model(self, model_data=None):
"""Factory method.
Must return the bundle-specific BaseDataSourceModel instance.
"""
""""""
......@@ -15,7 +15,7 @@ class IKPICalculatorBundle(Interface):
plugin = Instance(Plugin)
def create_kpi_calculator(self):
pass
""""""
def create_model(self, model_data=None):
pass
""""""
......@@ -15,10 +15,10 @@ class IMCOBundle(Interface):
plugin = Instance(Plugin)
def create_optimizer(self):
pass
""""""
def create_model(self, model_data=None):
pass
""""""
def create_communicator(self):
pass
""""""
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