| Conditions | 3 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Represents optimization strategy for group in PSO.""" |
||
| 16 | 1 | def initialize(self): |
|
| 17 | """ |
||
| 18 | Initialize strategy. |
||
| 19 | """ |
||
| 20 | 1 | max_cost = 0 |
|
| 21 | 1 | for stage in self.stages_in_group: |
|
| 22 | 1 | max_cost += stage.max_calls |
|
| 23 | 1 | if self.expected_quality > stage.maximum_acceptable_quality: |
|
| 24 | 1 | self.expected_quality = stage.maximum_acceptable_quality |
|
| 25 | 1 | self.max_cost = max_cost |
|
| 26 | |||
| 48 |
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.