BCDA-APS / bluesky_training

Bluesky training, including instrument package
https://bcda-aps.github.io/bluesky_training/
Other
11 stars 0 forks source link

Default value and time-out option in Ophyd #181

Open prjemian opened 1 year ago

prjemian commented 1 year ago

@QZhang234 emails:

It would be nice to add two addition options to the class definition of Component in Ophyd Device:

  1. A default value;
  2. A time-out period.

    An example of the use case is, if the default value is 0 and the time-out is 0.1 s, then a readout on the PV would return 0 if the PV faults out without crashing the scan. This gives beamline scientists the freedom to define the ‘fall behavior’ of Bluesky plans without being limited to the default ‘Crash Early Crash Hard’ rules.

Related to https://github.com/BCDA-APS/apstools/issues/24