rydiqule.sensor_utils.process_scannable_parameter

rydiqule.sensor_utils.process_scannable_parameter(val: float | List[float] | ndarray) ndarray | float[source]

Ensures that scannable parameters are coerced to numpy arrays.

If the parameter only has length of one, content is extracted.

Parameters:

val (ScannableParameter) – Scannable parameter to process.

Return type:

float or numpy.ndarray

Raises:

RydiquleError: – Raised if passed an empty sequence