Source code for accml_lib.core.interfaces.utils.state_conversion

from abc import abstractmethod, ABCMeta


[docs] class StateConversion(metaclass=ABCMeta): """convert one state to an other Other wide spread names: * unit conversion * coordinate system transformation Please note initialisation is not handled here """
[docs] @abstractmethod def forward(self, state: object) -> object: """from "physics" to machine Follows bluesky convention """ raise NotImplementedError("use derived class instead")
[docs] @abstractmethod def inverse(self, state: object) -> object: """from machine to "physics" Follows bluesky convention """ raise NotImplementedError("use derived class instead")