io#
import ampform_dpd.io
Input-output functions for ampform and sympy objects.
This module extends AmpForm’s aslatex() function. You can register
more implementations as follows:
This code originates from ComPWA/ampform#280.
- unfold_definitions(expr: Expr) dict[Expr, Expr][source]#
Recursively unfold one representative definition per expression class.
Instances of the same class are grouped before they are unfolded. Arguments that are identical across the group are retained. Different atomic arguments, such as channel-indexed symbols, use the first instance as their representative. Different composite arguments are replaced by a symbol named after the corresponding class parameter, so that special cases such as
h(1)are rendered ash(z).
- as_markdown_table(obj: ThreeBodyDecay | ThreeBodyDecayChain | Sequence[Particle]) str[source]#
Render objects a
strsuitable for generating a table.
Submodules and Subpackages
- serialization
Workspaceload_workspace()- amplitude
- decay
- dynamics
- format
ModelDefinitionDistributionDecayDescriptionTopologyDecayChainPropagatorVertexHelicityVertexParityVertexLSVertexNodeKinematicsDefinitionStateDefinitionFunctionDefinitionBlattWeisskopfDefinitionBreitWignerDefinitionGenericFunctionDefinitionMultichannelBreitWignerDefinitionChannelParametersget_decay_chains()get_distribution_def()get_function_definition()get_reference_topology()
- workspace