| Total Complexity | 4 |
| Total Lines | 14 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Basic optimizer.""" |
||
| 5 | 1 | class Optimizer(object): |
|
| 6 | """Optimizer is object which optimize process.""" |
||
| 7 | |||
| 8 | 1 | def __init__(self, process): |
|
| 9 | 1 | self.process = process |
|
| 10 | 1 | self.ordered_stages = topological_sort(self.process) |
|
| 11 | |||
| 12 | 1 | def set_custom_optimizing_order(self, ordered_stages): |
|
| 13 | """Set custom order.""" |
||
| 14 | 1 | if set(self.ordered_stages) == set(ordered_stages) and len( |
|
| 15 | self.ordered_stages) == len(ordered_stages): |
||
| 16 | 1 | self.ordered_stages = ordered_stages |
|
| 17 | else: |
||
| 18 | raise ValueError("List of stages must contain all stages.") |
||
| 19 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.