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