CustomScaling#
- class CustomScaling( )[source]#
Bases:
ScalingFunctionUser-defined scaling.
to_raw_fnis optional;to_rawraisesNotImplementedErrorwithout it.Example
>>> CustomScaling( ... to_physical_fn=lambda x: x / 4095 * 5.0 * 7.2, ... to_raw_fn=lambda v: int(v / 7.2 / 5.0 * 4095), ... )
Methods
Raw register value → physical units. |
|
Physical value → raw integer. |