| Conditions | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | """Contain mechanism for changing position.""" |
||
| 17 | 1 | @staticmethod |
|
| 18 | def set_initial_control_params(control_params): |
||
| 19 | """Set initial positions.""" |
||
| 20 | 1 | for stage in control_params: |
|
| 21 | 1 | random = np.random.rand(len(control_params[stage])) |
|
| 22 | 1 | delta = np.asarray(stage.upper_bounds) - np.asarray( |
|
| 23 | stage.lower_bounds) |
||
| 24 | 1 | new_control_params = np.asarray(stage.lower_bounds) + random * delta |
|
| 25 | 1 | control_params[stage] = new_control_params.tolist() |
|
| 26 | 1 | return control_params |
|
| 27 | |||
| 46 |
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.