| Conditions | 4 |
| Total Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | import numpy as np |
||
| 20 | def _fix_coordinates(self): |
||
| 21 | for i in range(len(self.stage.control_params)): |
||
| 22 | if self.stage.control_params[i] > self.stage.upper_bounds[i]: |
||
| 23 | self.stage.control_params[i] = self.stage.upper_bounds[i] |
||
| 24 | elif self.stage.control_params[i] < self.stage.lower_bounds[i]: |
||
| 25 | self.stage.control_params[i] = self.stage.lower_bounds[i] |
||
| 26 |
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.