pcdsdevices.utils.set_many
- pcdsdevices.utils.set_many(to_set: Dict[ophyd.signal.Signal, Union[str, int, bool, float, list[Union[str, int, bool, float]], numpy.ndarray[Any, numpy.dtype[Union[str, int, bool, float]]]]], *, owner: Optional[ophyd.ophydobj.OphydObject] = None, timeout: Optional[Union[int, float]] = None, settle_time: Optional[Union[int, float]] = None, raise_on_set_failure: bool = False) ophyd.status.StatusBase
Call
set
on all given signal-to-value pairs with a single Status return value.- Parameters
to_set (Dict[ophyd.Signal, OphydDataType]) – Dictionary of Signal to data to
set
.owner (OphydObject, optional) – The owner object, to be used for logging / Status object attribution.
timeout (float, optional) – Per-signal timeout to configure during set.
settle_time (float, optional) – Per-signal settle time to configure during set.
raise_on_set_failure (bool, optional) – Raise if any of the
set
calls fail.
- Returns
status (ophyd.Status.StatusBase) – One Status or AndStatus instance that reflects the completion status of the setting all signal to the provided values.