ophyd.utils

Functions

adapt_old_callback_signature(callback)

If callback has signature callback(), wrap in signature callback(status).

doc_annotation_forwarder(base_klass)

ducks_from_namespace(attrs, *[, ns])

Get instances that have all of attributes.

enum(**enums)

Create an enum from the keyword arguments

getattrs(obj, gen)

For each item in the generator gen, yields (attr, getattr(obj, attr))

instances_from_namespace(classes, *[, ns])

Get instances of classes from the user namespace

underscores_to_camel_case(underscores)

Convert abc_def_ghi to abcDefGhi

Classes

DO_NOT_USE()

sentinel value

OrderedDefaultDict([default_factory])

a combination of defaultdict and OrderedDict