pcdsdevices.utils.set_many

pcdsdevices.utils.set_many(to_set: dict[ophyd.Signal, OphydDataType], *, owner: ophyd.ophydobj.OphydObject | None = None, timeout: Number | None = None, settle_time: Number | None = 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.