| Conditions | 1 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1 |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | """Contains things related to calculating velocity.""" |
||
| 26 | 1 | def calculate(self, particle_best_position, leader_best_position): |
|
| 27 | """Calculate velocity.""" |
||
| 28 | 1 | velocity = self._s0() + self.c_1 * self._s1( |
|
| 29 | leader_best_position) + self.c_2 * self._s2(particle_best_position) |
||
| 30 | 1 | self.current_velocity = velocity |
|
| 31 | 1 | return velocity |
|
| 32 | |||
| 45 |
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.