transform¶
import tensorwaves.data.transform
Implementations of DataTransformer
.
-
class
HelicityTransformer
(helicity_adapter: ampform.kinematics.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, numpy.ndarray]) → Mapping[str, numpy.ndarray][source]¶ Transform a dataset into another dataset.
This changes the keys and values of the input
DataSample
to a specific outputDataSample
structure.
-