hvl_ccb.utils.conversion.utils

Inheritance diagram of hvl_ccb.utils.conversion.utils

class GetAttr(default, name)[source]

Bases: object

class SetAttr(default, name, limits, absolut=False, dtype=(<class 'int'>, <class 'float'>), validator=None)[source]

Bases: GetAttr

convert_value_to_str(*value: ndarray[Any, dtype[_ScalarType_co]]) list[str | list[str]][source]

Converts two sets of values to strings. This is necessary because a 0-dim array needs different treatment than a 1-dim array :param value: array of values either 0-dim or 1-dim :return:converted se

preserve_type(func)[source]

This wrapper preserves the first order type of the input. Upto now the type of the data stored in a list, tuple, array or dict is not preserved. Integer will be converted to float!