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

Removed name property from base evaluator classes

parent ddccc7b7
No related branches found
No related tags found
1 merge request!38Removed name property from base evaluator classes
......@@ -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