Conditions | 5 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 5 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | """Basic optimizer.""" |
||
24 | 1 | self.run_pso(stage) |
|
25 | else: |
||
26 | raise AttributeError('Incorrect process structure.') |
||
27 | |||
28 | if stage.optimization_status != OptimizationStatus.success: |
||
29 | return False |
||
30 | return True |
||
31 | 1 | ||
32 | 1 | def run_pso(self, stage): |
|
33 | 1 | """Run pso with predefined parameters.""" |
|
34 | pso(stage, swarmsize=self.swarm_size) |
||
35 |