sm_bluesky.common.plan_stubs
#
Members
Set the acquire time on an area detector. |
|
RootModel for motor tables |
|
Perform a step scan with the range and starting motor position |
|
Set opening of x-y slit. |
|
Check if the given values are within the limits of the motor. |
|
Get the motor positions of the given motors and store them in a list. |
|
Adjust the step size if the required velocity is higher than the max value. |
- sm_bluesky.common.plan_stubs.set_area_detector_acquire_time(det: AreaDetector | SingleTriggerDetector, acquire_time: float, wait: bool = True) Generator[Msg, Any, P] [source]#
Set the acquire time on an area detector.
- Parameters:
- Returns:
A Bluesky generator for setting the acquire time.
- Return type:
MsgGenerator
- class sm_bluesky.common.plan_stubs.MotorTable(root: RootModelRootType = PydanticUndefined)[source]#
RootModel for motor tables
- sm_bluesky.common.plan_stubs.move_motor_with_look_up(slit: Motor, size: float, motor_table: dict[str, float], use_motor_position: bool = False, wait: bool = True, group: Hashable | None = None) Generator[Msg, Any, P] [source]#
- Perform a step scan with the range and starting motor position
given/calculated by using a look up table(dictionary). Move to the peak position after the scan and update the lookup table.
- Parameters:
motor (Motor) – Motor devices that is being centre.
size (float) – The motor position or name in the motor_table.
motor_table (dict[str, float],) – Look up table for motor position,
use_motor_position (bool = False,) – If Ture it will take motor position as size.
wait (bool = True,) – If Ture, it will wait until position is reached.
group (Hashable | None = None,) – Bluesky group identifier used by ‘wait’.
- sm_bluesky.common.plan_stubs.set_slit_size(xy_slit: Slits, x_size: float, y_size: float | None = None, wait: bool = True, group: Hashable | None = None) Generator[Msg, Any, P] [source]#
Set opening of x-y slit.
- sm_bluesky.common.plan_stubs.check_within_limit(values: list[float], motor: Motor)[source]#
Check if the given values are within the limits of the motor. :param values: The values to check. :type values: List[float] :param motor: The motor to check the limits of. :type motor: Motor
- Raises:
ValueError – If any value is outside the motor’s limits.
- sm_bluesky.common.plan_stubs.get_motor_positions(*arg: Motor) Iterator[tuple[str, float]] [source]#
Get the motor positions of the given motors and store them in a list.