qudi.util.helpers.in_range

qudi.util.helpers.in_range(value: int | float, lower_limit: int | float, upper_limit: int | float) Tuple[bool, int | float][source]

Check if a value is in a given range an return closest possible value in range. Also check the range. Return value is clipped to range.