dragonfly.implementations.mdreceiver module

Some template vars

Members: MDReceiver Functions: Classes:

Summary

class dragonfly.implementations.mdreceiver.MDReceiver(**kwargs)

Bases: dragonfly.implementations.mdreceiver.MDReceiver

Base class for mdreceiver

Keyword Arguments:
 
  • name (str) – unique identifier across all dripline services (used to determine routing key)
  • calibration (str||dict) – string use to process raw get result (with .format(raw)) or a dict to use for the same purpose where raw must be a key
  • get_on_set (bool) – flag to toggle running ‘on_get’ after each ‘on_set’
handle_request(channel, method, properties, request)
is_locked
lock(lockout_key=None, *args, **kwargs)
lockout_key
on_cmd(*args, **kwargs)

WARNING! if you override this method, you must ensure you deal with lockout properly

on_config(attribute, value=None)

configure a property again

WARNING! if you override this method, you must ensure you deal with lockout properly

ping(*args, **kwargs)

ignore all details and respond with an empty message

set_condition(*args, **kwargs)

To actually do something inside a class, the set_condition should be implemented in the class itself.

unlock(*args, **kwargs)
write_json(filename)

contents (dict): dict of metadata to write, keys are e.g ‘DAQ’,’run_time’, etc filename (str): metadata file name to save including full path

End of modules condition

Data:

End of data condition