Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEAT: implement FormFactor expression class #422

Merged
merged 6 commits into from
May 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading