Conditions | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | """Represents swarm.""" |
||
9 | 1 | def __init__(self, process, stages, number_of_particles): |
|
10 | 1 | self.stages = stages |
|
11 | 1 | self.process = process |
|
12 | 1 | self.number_of_particles = number_of_particles |
|
13 | 1 | self.particles = [Particle(stages, self.process) for i in |
|
14 | range(number_of_particles)] |
||
15 | 1 | self.best_particle_quality = np.inf |
|
16 | 1 | self.best_particle = self.particles[0] |
|
17 | |||
41 |
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__.py
files in your module folders. Make sure that you place one file in each sub-folder.