| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Represents optimization strategy for group in PSO.""" |
||
| 27 | 1 | def should_continue(self, best_particle): |
|
| 28 | """ |
||
| 29 | |||
| 30 | Args: |
||
| 31 | best_particle Particle: best particle in swarm. |
||
| 32 | |||
| 33 | Returns: |
||
| 34 | bool: true if continuation is required. |
||
| 35 | |||
| 36 | """ |
||
| 37 | 1 | return self._is_safe_cost() and not self._is_enough_quality( |
|
| 38 | best_particle) |
||
| 39 | |||
| 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.