transform¶
import tensorwaves.data.transform
Implementations of DataTransformer.
- class HelicityTransformer(helicity_adapter: HelicityAdapter)[source]¶
Bases:
tensorwaves.interface.DataTransformerTransform four-momentum tuples to variables in the helicity formalism.
Implementation of a
DataTransformerbased on theHelicityAdapter.- transform(dataset: Mapping[Union[int, str], ndarray]) Mapping[Union[int, str], ndarray][source]¶
Transform a dataset into another dataset.
This changes the keys and values of the input
DataSampleto a specific outputDataSamplestructure.