Conditions | 5 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """Basic optimizer.""" |
||
22 | def optimize_process(self): |
||
23 | """Optimize process. |
||
24 | Returns: |
||
25 | True if success, False otherwise.""" |
||
26 | for stage in self.ordered_stages: |
||
27 | if len(self.process.predecessors(stage)) == 0: |
||
28 | pso(stage) |
||
29 | elif len(self.process.predecessors(stage)) == 1: |
||
30 | predecessor = self.process.predecessors(stage)[0] |
||
31 | stage.input_vector = predecessor.get_output_of_stage() |
||
32 | pso(stage) |
||
33 | else: |
||
34 | raise AttributeError('Incorrect process structure.') |
||
35 | |||
36 | if stage.optimization_status != OptimizationStatus.success: |
||
37 | return False |
||
38 | |||
39 | return True |
||
40 |
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__.py
files in your module folders. Make sure that you place one file in each sub-folder.