ScalingFunction# class ScalingFunction[source]# Bases: ABC Convert between raw register integers and physical units (forward and inverse). Methods to_physical Raw register value → physical units. to_raw Physical value → raw integer. abstractmethod to_physical(raw: int) → float[source]# Raw register value → physical units. abstractmethod to_raw(physical: float) → int[source]# Physical value → raw integer. May raise NotImplementedError if inverse is not supported.