sm_bluesky.common.math_functions#

Members

cal_range_num

Calculate the start, end and the number of steps for a scan.

step_size_to_step_num

Quick conversion to step from step size.

sm_bluesky.common.math_functions.cal_range_num(cen: float, range: float, size: float) tuple[float, float, int][source]#

Calculate the start, end and the number of steps for a scan.

sm_bluesky.common.math_functions.step_size_to_step_num(start: float, end: float, step_size: float) int[source]#

Quick conversion to step from step size.

Parameters:
  • start (float) – Starting position.

  • end (float) – Ending position.

  • step_size (float) – Step size.

Returns:

Number of steps.

Return type:

int