secop_ophyd.datatypes.secop_dtype#

SECoP datatypes as numpy dtypes and bluesky data keys.

Module Contents#

Classes#

SECoPDataKey

A DataKey that is used to describe the SECoP Datatype.

SECoPdtype

SECoPReading

Functions#

describedict_to_datakey

Convert a DataKey to a SECoPDataKey

get_type_param

Data#

API#

class secop_ophyd.datatypes.secop_dtype.SECoPDataKey[source]#

Bases: event_model.DataKey

A DataKey that is used to describe the SECoP Datatype.

Initialization

Initialize self. See help(type(self)) for accurate signature.

dtype_str: typing_extensions.NotRequired[str] = None#

The array-protocol typestring of the data-type object.

dtype_descr: typing_extensions.NotRequired[list] = None#

String representation of the numpy structured array dtype.

SECOP_datainfo: str = None#

String representation of the original secop datatype.

SECoP_dtype: typing_extensions.NotRequired[str] = None#

The SECoP datatype of the data.

class secop_ophyd.datatypes.secop_dtype.SECoPdtype(datatype: frappy.datatypes.DataType)[source]#

Initialization

get_datakey() → dict[source]#
secop2val(reading_val) → Any[source]#
val2secop(input_val) → Any[source]#
update_dtype(input_val)[source]#
class secop_ophyd.datatypes.secop_dtype.SECoPReading(secop_dt: secop_ophyd.datatypes.secop_dtype.SECoPdtype, entry: frappy.client.CacheItem | None = None)[source]#

Initialization

get_reading() → bluesky.protocols.Reading[source]#
get_value()[source]#
get_secop_value()[source]#
set_reading(value) → None[source]#
secop_ophyd.datatypes.secop_dtype.SECOP2DTYPE = None#
secop_ophyd.datatypes.secop_dtype.describedict_to_datakey(describe_dict: dict) → secop_ophyd.datatypes.secop_dtype.SECoPDataKey[source]#

Convert a DataKey to a SECoPDataKey

secop_ophyd.datatypes.secop_dtype.get_type_param(secop_dtype: frappy.datatypes.DataType) → str | None[source]#