Conditions | 4 |
Total Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 4.5923 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | """Contain mechanism for changing position.""" |
||
29 | 1 | def _fix_coordinates(self): |
|
30 | 1 | for i in range(len(self.stage.control_params)): |
|
31 | 1 | if self.stage.control_params[i] > self.stage.upper_bounds[i]: |
|
32 | self.stage.control_params[i] = self.stage.upper_bounds[i] |
||
33 | 1 | elif self.stage.control_params[i] < self.stage.lower_bounds[i]: |
|
34 | self.stage.control_params[i] = self.stage.lower_bounds[i] |
||
35 |
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.