module documentation
Functionality for planning scan routes.
A scan route can be planned by a ScanPlanner class currently there is only one type the SmartSpiral. More can be added using by subclassing the ScanPlanner
| Class | |
A base class for a scan planner. |
| Class | |
A scan planner that spirals outward from the centre, prioritising short moves. |
| Function | distance |
Calculate the distance between the two xy positions. |
| Function | enforce |
Check input is a tuple and is of length 2. |
| Function | enforce |
Check input is a tuple and is of length 3. |
| Constant | LOGGER |
Undocumented |
| Constant | NEIGHBOUR |
Undocumented |
| Type Alias | |
Undocumented |
| Type Alias | |
Undocumented |
| Type Alias | |
Undocumented |
| Type Alias | |
Undocumented |
def distance_between(current_pos:
XYPos | np.ndarray, next_pos: XYPos | np.ndarray) -> float:
(source)
¶
Calculate the distance between the two xy positions.
This was previously called distance_to_site
Check input is a tuple and is of length 2.
If possible it will coerce the value to a tuple.
| Raises | |
ValueError | if the input cannot be coerced to a tuple of length 2. |