Skip to content

Commit

Permalink
FEAT: implement FormFactor expression class (#422)
Browse files Browse the repository at this point in the history
* ENH: use `FormFactor` in Breit-Wigners
* MAINT: remove useless cell with `breakup_momentum()`
* MAINT: update sympy hashes
  • Loading branch information
redeboer authored May 20, 2024
1 parent 7f6ee07 commit fc189cd
Show file tree
Hide file tree
Showing 10 changed files with 226 additions and 205 deletions.
10 changes: 5 additions & 5 deletions docs/_extend_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,16 +295,16 @@ def extend_EuclideanNorm() -> None:
_append_code_rendering(expr)


def extend_formulate_form_factor() -> None:
from ampform.dynamics import formulate_form_factor
def extend_FormFactor() -> None:
from ampform.dynamics.form_factor import FormFactor

s, m_a, m_b, L, d = sp.symbols("s m_a m_b L d")
form_factor = formulate_form_factor(s, m_a, m_b, angular_momentum=L, meson_radius=d)
form_factor = FormFactor(s, m_a, m_b, angular_momentum=L, meson_radius=d)
_append_to_docstring(
formulate_form_factor,
FormFactor,
f"""
.. math:: {sp.latex(form_factor)}
:label: formulate_form_factor
:label: FormFactor
""",
)

Expand Down
Loading

0 comments on commit fc189cd

Please sign in to comment.