ibex_bluesky_core.utils
Utilities for plans which are not plan stubs.
Members
Abstract class for type checking that an object is readable, named and movable. |
|
Given a centre and range, return a contiguous range of pixels around the centre, inclusive. |
|
Return the PV prefix for the current instrument. |
- class ibex_bluesky_core.utils.NamedReadableAndMovable(*args, **kwargs)[source]
Bases:
Readable
[Any
],NamedMovable
[Any
],Protocol
Abstract class for type checking that an object is readable, named and movable.
- ibex_bluesky_core.utils.centred_pixel(centre: int, pixel_range: int) list[int] [source]
Given a centre and range, return a contiguous range of pixels around the centre, inclusive.
ie. a centre of 50 with a range of 3 will give [47, 48, 49, 50, 51, 52, 53]
- Parameters:
centre (int) – The centre pixel number.
pixel_range (int) – The range of pixels either side to surround the centre.
Returns a list of pixel numbers.