secop_ophyd.datatypes.numpy_dtypes#

numpy dtypes for SECoP datatypes, one class per datatype.

Module Contents#

Classes#

Functions#

Data#

API#

class secop_ophyd.datatypes.numpy_dtypes.DtypeNP[source]#

Bases: abc.ABC

secop_dtype: frappy.datatypes.DataType = None#
name: str | None = None#
array_element: bool = False#
max_depth: int = 0#
abstractmethod make_numpy_dtype() → tuple[source]#

Create Numpy Compatible structured Datatype

abstractmethod make_concrete_numpy_dtype(value) → tuple[source]#

Create Numpy Compatible structured Datatype from a concrete data value

abstractmethod make_numpy_compatible_list(value) → Any[source]#

make a make a list that is ready for numpy array import

abstractmethod make_secop_compatible_object(value) → Any[source]#

make a make an SECoP Compatible Object

secop_ophyd.datatypes.numpy_dtypes.dt_factory(secop_dt: frappy.datatypes.DataType, name: str = '', array_element: bool = False) → secop_ophyd.datatypes.numpy_dtypes.DtypeNP[source]#
secop_ophyd.datatypes.numpy_dtypes.STR_LEN_DEFAULT = 100#
class secop_ophyd.datatypes.numpy_dtypes.BLOBNP(blob_dt: frappy.datatypes.BLOBType, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: str)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.BoolNP(bool_dt: frappy.datatypes.BoolType, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: bool)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.EnumNP(enum_dt: frappy.datatypes.EnumType, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: int)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.FloatNP(float_dt: frappy.datatypes.FloatRange, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: float)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.IntNP(int_dt: frappy.datatypes.IntRange, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: int)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.ScaledIntNP(scaled_int_dt: frappy.datatypes.ScaledInteger, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: int)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.StringNP(string_dt: frappy.datatypes.StringType, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: str)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.StructNP(struct_dt: frappy.datatypes.StructOf, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: dict)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.TupleNP(tuple_dt: frappy.datatypes.TupleOf, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: tuple)[source]#
make_secop_compatible_object(value) → Any[source]#
class secop_ophyd.datatypes.numpy_dtypes.ArrayNP(array_dt: frappy.datatypes.ArrayOf, name: str = '', array_element: bool = False)[source]#

Bases: secop_ophyd.datatypes.numpy_dtypes.DtypeNP

get_root_np_str() → str[source]#
make_numpy_dtype() → tuple[source]#
make_concrete_numpy_dtype(value) → tuple[source]#
make_numpy_compatible_list(value: list)[source]#
make_secop_compatible_object(value: numpy.ndarray) → Any[source]#