ComPWA / ampform-dpd

Dalitz-Plot Decomposition with SymPy
https://compwa.github.io/ampform-dpd
Apache License 2.0
4 stars 2 forks source link

FEAT: define `normalize_state_ids()` for QRules #111

Closed redeboer closed 6 months ago

redeboer commented 6 months ago

Imported relabel_edge_ids() as normalize_state_ids() and improves the logics a bit. This makes AmpForm-DPD also compatible with AmpForm v0.14.

import qrules
from ampform_dpd.adapter.qrules import normalize_state_ids

reaction = qrules.generate_transitions(
    initial_state="D0",
    final_state=["K0", "K-", "K+"],
)
reaction = normalize_state_ids(reaction)