blissoda.utils.trigger.enable_processing_trigger#

blissoda.utils.trigger.enable_processing_trigger(processing_id, trigger, timing)[source]#

Execute trigger when the scan reaches a certain stage (PREPARED by default).

When trigger returns a dictionary it will merged with the dictionary of all other trigger functions in the Bliss session and saved in HDF5 under the “/x.y/workflows” group. The dictionary follows the convention accepted by the dicttonx method from the silx library.

The processing_id needs to be unique within a Bliss session.

Parameters:
  • processing_id (str)

  • trigger (Callable[[Any], Optional[dict]])

  • timing (Union[str, Any])