| Total Complexity | 5 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Contains WholeGroupPso class.""" |
||
| 7 | class OptimizationController(object): |
||
|
|
|||
| 8 | @staticmethod |
||
| 9 | def should_continue(stages): |
||
| 10 | for stage in stages: |
||
| 11 | if OptimizationStatus.failed == stage.optimization_status: |
||
| 12 | return False |
||
| 13 | for stage in stages: |
||
| 14 | if OptimizationStatus.success != stage.optimization_status: |
||
| 15 | return True |
||
| 16 | return False |
||
| 17 | |||
| 33 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.