dodal.devices.zocalo.zocalo_results.ZocaloResults#

class dodal.devices.zocalo.zocalo_results.ZocaloResults[source]#

An ophyd device which can wait for results from a Zocalo job. These jobs should be triggered from a plan-subscribed callback using the run_start() and run_end() methods on dodal.devices.zocalo.ZocaloTrigger.

See DiamondLightSource/dodal

Parameters:
  • name (str, default: 'zocalo')

  • zocalo_environment (str, default: 'dev_artemis')

  • channel (str, default: 'xrc.i03')

  • sort_key (str, default: 'max_count')

  • timeout_s (float, default: 180)

  • prefix (str, default: '')

Methods

describe()

rtype:

dict[str, DataKey]

stage()

Stages the Zocalo device by: subscribing to the queue, doing a background sleep for a few seconds to wait for any stale messages to be recieved, then clearing the queue.

trigger()

Returns an AsyncStatus waiting for results to be received from Zocalo.

unstage()

Attributes

stage()[source]#

Stages the Zocalo device by: subscribing to the queue, doing a background sleep for a few seconds to wait for any stale messages to be recieved, then clearing the queue. Plans using this device should wait on ZOCALO_STAGE_GROUP before triggering processing for the experiment

trigger()[source]#

Returns an AsyncStatus waiting for results to be received from Zocalo.