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