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

Merge branch 'master' into extract-and-normalize-ids

parents b6708bdf 1e76b8e2
No related branches found
No related tags found
1 merge request!31Moved bundle_id to ids and aggregated ExtensionPointID onto enumeration class
...@@ -22,7 +22,9 @@ script: ...@@ -22,7 +22,9 @@ script:
- flake8 . - flake8 .
- python -m unittest discover - python -m unittest discover
- pip install -r requirements/doc_requirements.txt - pip install -r requirements/doc_requirements.txt
- sphinx-build -W doc/source doc/build/sphinx - pushd doc
- make html
- popd
after_success: after_success:
- coverage run -m unittest discover - coverage run -m unittest discover
- pip install codecov - pip install codecov
......
...@@ -25,12 +25,6 @@ class BaseDataSource(ABCHasStrictTraits): ...@@ -25,12 +25,6 @@ class BaseDataSource(ABCHasStrictTraits):
self.model = model self.model = model
super(BaseDataSource, self).__init__(*args, **kwargs) 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 @abc.abstractmethod
def run(self, parameters): def run(self, parameters):
"""Executes the data source evaluation/fetching and returns """Executes the data source evaluation/fetching and returns
......
...@@ -25,11 +25,6 @@ class BaseKPICalculator(ABCHasStrictTraits): ...@@ -25,11 +25,6 @@ class BaseKPICalculator(ABCHasStrictTraits):
self.model = model self.model = model
super(BaseKPICalculator, self).__init__(*args, **kwargs) 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 @abc.abstractmethod
def run(self, data_source_results): def run(self, data_source_results):
""" """
......
...@@ -25,12 +25,6 @@ class BaseMultiCriteriaOptimizer(ABCHasStrictTraits): ...@@ -25,12 +25,6 @@ class BaseMultiCriteriaOptimizer(ABCHasStrictTraits):
self.model = model self.model = model
super(BaseMultiCriteriaOptimizer, self).__init__(*args, **kwargs) 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 @abc.abstractmethod
def run(self): def run(self):
"""Reimplement this method to perform the MCO operations.""" """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