poly_lithic.src.transformers package🔗
Submodules🔗
Module contents🔗
Transformers module.
Contains base transformer classes and built-in transformer implementations.
- class poly_lithic.src.transformers.BaseTransformer(config)[source]🔗
Bases:
object- Parameters:
config (dict)
- abstractmethod transform()[source]🔗
Call transform function to transform the input data, see SimpleTransformer in model_manager/src/transformers/BaseTransformers.py for an example.
- abstractmethod handler(pv_name, value)[source]🔗
Handler function to handle the input data, in most cases it initiates the transform function when all the input data is available. Handler is the only function exposed to the main loop of the program aside from initial configuration.
- Parameters:
pv_name (str)
value (dict | float | int)
- class poly_lithic.src.transformers.SimpleTransformer(config)[source]🔗
Bases:
BaseTransformer
- class poly_lithic.src.transformers.CompoundTransformer(config)[source]🔗
Bases:
BaseTransformer
- class poly_lithic.src.transformers.PassThroughTransformer(config)[source]🔗
Bases:
BaseTransformer
- class poly_lithic.src.transformers.CAImageTransfomer(config)[source]🔗
Bases:
BaseTransformerInput only image transformation
- handler(variable_name, value)[source]🔗
Handler function to handle the input data, in most cases it initiates the transform function when all the input data is available. Handler is the only function exposed to the main loop of the program aside from initial configuration.
- Parameters:
variable_name (str)
value (dict)