hvl_ccb.utils.conversion.map_range

Inheritance diagram of hvl_ccb.utils.conversion.map_range

class MapBitAsymRange(value: ~typing.Union[int, float], bit: int, dtype_1: ~typing.Union[~numpy.dtype, None, type, ~numpy.typing._dtype_like._SupportsDType[~numpy.dtype], str, ~typing.Tuple[~typing.Any, int], ~typing.Tuple[~typing.Any, ~typing.Union[~typing_extensions.SupportsIndex, ~typing.Sequence[~typing_extensions.SupportsIndex]]], ~typing.List[~typing.Any], ~numpy.typing._dtype_like._DTypeDict, ~typing.Tuple[~typing.Any, ~typing.Any]] = <class 'float'>, logger=None)[source]

Bases: _MapBitRange

Class to convert an asymmetric arbitrary range (0 to value) to a bit-range (0 to 2**bit - 1).

class MapBitSymRange(value: ~typing.Union[int, float], bit: int, dtype_1: ~typing.Union[~numpy.dtype, None, type, ~numpy.typing._dtype_like._SupportsDType[~numpy.dtype], str, ~typing.Tuple[~typing.Any, int], ~typing.Tuple[~typing.Any, ~typing.Union[~typing_extensions.SupportsIndex, ~typing.Sequence[~typing_extensions.SupportsIndex]]], ~typing.List[~typing.Any], ~numpy.typing._dtype_like._DTypeDict, ~typing.Tuple[~typing.Any, ~typing.Any]] = <class 'float'>, logger=None)[source]

Bases: _MapBitRange

Class to convert a symmetric arbitrary range (-value to value) to a bit-range (0 to 2**bit - 1).

class MapRanges(range_1: Tuple[Union[int, float], Union[int, float]], range_2: Tuple[Union[int, float], Union[int, float]], dtype_1: Union[dtype, None, type, _SupportsDType[dtype], str, Tuple[Any, int], Tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], List[Any], _DTypeDict, Tuple[Any, Any]], dtype_2: Union[dtype, None, type, _SupportsDType[dtype], str, Tuple[Any, int], Tuple[Any, Union[SupportsIndex, Sequence[SupportsIndex]]], List[Any], _DTypeDict, Tuple[Any, Any]], logger=None)[source]

Bases: object

convert_to_range1(value, **kwargs)
convert_to_range2(value, **kwargs)