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

Merge pull request #38 from force-h2020/33-remove-name-property

Removed name property from base evaluator classes
parents 8c28cd2b 04c7ff68
No related branches found
No related tags found
No related merge requests found
......@@ -25,12 +25,6 @@ class BaseDataSource(ABCHasStrictTraits):
self.model = model
super(BaseDataSource, self).__init__(*args, **kwargs)
@property
def name(self):
"""Utility property to retrieve the bundle name from the data source
object."""
return self.bundle.name
@abc.abstractmethod
def run(self, parameters):
"""Executes the data source evaluation/fetching and returns
......
......@@ -25,11 +25,6 @@ class BaseKPICalculator(ABCHasStrictTraits):
self.model = model
super(BaseKPICalculator, self).__init__(*args, **kwargs)
@property
def name(self):
"""Convenience property. Returns the name of the originating bundle."""
return self.bundle.name
@abc.abstractmethod
def run(self, data_source_results):
"""
......
......@@ -25,12 +25,6 @@ class BaseMultiCriteriaOptimizer(ABCHasStrictTraits):
self.model = model
super(BaseMultiCriteriaOptimizer, self).__init__(*args, **kwargs)
@property
def name(self):
"""Convenience property to return the name of the bundle from the
MCO itself"""
return self.bundle.name
@abc.abstractmethod
def run(self):
"""Reimplement this method to perform the MCO operations."""
......
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