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