CompositeTransform¶
-
class
utilipy.data_utils.xfm.
CompositeTransform
(transforms: Sequence, fromtype, totype, priority: int = 1, register_graph=None)[source]¶ Bases:
utilipy.data_utils.xfm.transformations.DataTransformBase
A transformation from a series of single-step transformations.
Todo
support passed arguments to steps within the transform list
- Parameters
- transformssequence of
DataTransform
objects The sequence of transformations to apply.
- fromtypeclass
The coordinate frame class to start from.
- totypeclass
The coordinate frame class to transform into.
- prioritynumber
The priority if this transform when finding the shortest coordinate transform path - large numbers are lower priorities.
- register_graph
TransformGraph
orNone
A graph to register this transformation with on creation, or
None
to leave it unregistered.
- transformssequence of
Create Composite Data Transformer.
Methods Summary
__call__
(fromdata, *args[, _override_kws])Run transformation.
Methods Documentation
-
__call__
(fromdata, *args, _override_kws: bool = False, **kwargs)[source]¶ Run transformation.
- Parameters
- fromdataAny
- *argsAny
arguments into the first transformation
- _override_kwsbool
whether to permit the default kwargs in the first transformation, or completely override by any supplied kwargs (if any are given here). If they are permitted, individual arguments are still overriden by ones supplied here.
- **kwargsAny
keyword argument into the first transformation
- Returns
- todataAny
The result of running
fromdata
through the transformation series listed inself.transforms