secop_ophyd.datatypes.properties#

Datatypes and values of SECoP module and node properties.

Module Contents#

Functions#

secop_dtype_obj_from_json

property_dtype_and_value

Datatype and value with which a SECoP property is exposed as a Signal.

module_property_signals

Signal name -> (datatype, value) for the properties of a module.

get_type_prop

Data#

API#

secop_ophyd.datatypes.properties.secop_dtype_obj_from_json(prop_val)[source]#
secop_ophyd.datatypes.properties.property_dtype_and_value(prop_val: Any) → tuple[frappy.datatypes.DataType, Any][source]#

Datatype and value with which a SECoP property is exposed as a Signal.

Struct/tuple-valued properties (and arrays of them) are exposed as a JSON string: bluesky/TiledWriter cannot store numpy structured arrays.

secop_ophyd.datatypes.properties.MEANING_MEMBERS: dict[str, frappy.datatypes.DataType] = None#
secop_ophyd.datatypes.properties.module_property_signals(properties: dict[str, Any]) → dict[str, tuple[frappy.datatypes.DataType, Any]][source]#

Signal name -> (datatype, value) for the properties of a module.

A well-formed ‘meaning’ becomes one typed signal per member it has (meaning_function, meaning_importance, …). Every other property, and a malformed ‘meaning’, is one signal as given by property_dtype_and_value.

secop_ophyd.datatypes.properties.get_type_prop(prop_value) → str | None[source]#