From 04c7ff689b5f5de09260c2ca178f6b53ddf59482 Mon Sep 17 00:00:00 2001 From: Stefano Borini <sborini@enthought.com> Date: Fri, 21 Jul 2017 10:43:49 +0100 Subject: [PATCH] Removed name property from base evaluator classes --- force_bdss/data_sources/base_data_source.py | 6 ------ force_bdss/kpi/base_kpi_calculator.py | 5 ----- force_bdss/mco/base_multi_criteria_optimizer.py | 6 ------ 3 files changed, 17 deletions(-) diff --git a/force_bdss/data_sources/base_data_source.py b/force_bdss/data_sources/base_data_source.py index 07a5ee9..ac25f1d 100644 --- a/force_bdss/data_sources/base_data_source.py +++ b/force_bdss/data_sources/base_data_source.py @@ -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 diff --git a/force_bdss/kpi/base_kpi_calculator.py b/force_bdss/kpi/base_kpi_calculator.py index 0a9a2e0..d251842 100644 --- a/force_bdss/kpi/base_kpi_calculator.py +++ b/force_bdss/kpi/base_kpi_calculator.py @@ -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): """ diff --git a/force_bdss/mco/base_multi_criteria_optimizer.py b/force_bdss/mco/base_multi_criteria_optimizer.py index 6dd3462..d9862a6 100644 --- a/force_bdss/mco/base_multi_criteria_optimizer.py +++ b/force_bdss/mco/base_multi_criteria_optimizer.py @@ -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.""" -- GitLab