transform
transform#
import tensorwaves.data.transform
Implementations of DataTransformer
.
- class HelicityTransformer(helicity_adapter: HelicityAdapter)[source]#
Bases:
tensorwaves.interfaces.DataTransformer
Transform four-momentum tuples to variables in the helicity formalism.
Implementation of a
DataTransformer
based 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
DataSample
to a specific outputDataSample
structure.