hvl_ccb.utils.conversion.utils

digraph inheritance6c6f4a5fcb { bgcolor=transparent; rankdir=TB; size=""; "GetAttr" [URL="../hvl_ccb.utils.conversion.utils.html#hvl_ccb.utils.conversion.utils.GetAttr",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "SetAttr" [URL="../hvl_ccb.utils.conversion.utils.html#hvl_ccb.utils.conversion.utils.SetAttr",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.25,shape=box,style="setlinewidth(0.5),filled",target="_top"]; "GetAttr" -> "SetAttr" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
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]]) list[Union[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!