ophyd.device.Device.configure

Device.configure(self, d:Dict[str, Any]) → Tuple[Dict[str, Any], Dict[str, Any]]

Configure the device for something during a run

This default implementation allows the user to change any of the configuration_attrs. Subclasses might override this to perform additional input validation, cleanup, etc.

Parameters:
d : dict

The configuration dictionary. To specify the order that the changes should be made, use an OrderedDict.

Returns:
(old, new) tuple of dictionaries
Where old and new are pre- and post-configure configuration states.