Skip to content

Commit

Permalink
DOC: use `dynamics.assign() in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Mar 4, 2024
1 parent c7b8205 commit bcb9f21
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/amplitude-analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
"1. The coefficients for the different amplitudes are **complex** valued.\n",
"2. By default there is no dynamics in the model, so it still has to be specified.\n",
"\n",
"We choose to use {func}`~ampform.dynamics.relativistic_breit_wigner_with_ff` as the lineshape for all resonances and use a Blatt-Weisskopf form factor ({func}`~ampform.dynamics.builder.create_non_dynamic_with_ff`) for the production decay. The {meth}`~ampform.helicity.HelicityAmplitudeBuilder.set_dynamics` is a convenience interface for replacing the dynamics for intermediate states."
"We choose to use {func}`~ampform.dynamics.relativistic_breit_wigner_with_ff` as the lineshape for all resonances and use a Blatt-Weisskopf form factor ({func}`~ampform.dynamics.builder.create_non_dynamic_with_ff`) for the production decay. The {meth}`~ampform.helicity.HelicityAmplitudeBuilder.dynamics.assign` is a convenience interface for replacing the dynamics for intermediate states."
]
},
{
Expand All @@ -258,9 +258,9 @@
" create_relativistic_breit_wigner_with_ff,\n",
")\n",
"\n",
"model_builder.set_dynamics(\"J/psi(1S)\", create_non_dynamic_with_ff)\n",
"model_builder.dynamics.assign(\"J/psi(1S)\", create_non_dynamic_with_ff)\n",
"for name in reaction.get_intermediate_particles().names:\n",
" model_builder.set_dynamics(name, create_relativistic_breit_wigner_with_ff)\n",
" model_builder.dynamics.assign(name, create_relativistic_breit_wigner_with_ff)\n",
"model = model_builder.formulate()"
]
},
Expand Down
6 changes: 3 additions & 3 deletions docs/amplitude-analysis/analytic-continuation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@
" energy_dependent_width=True,\n",
" phsp_factor=PhaseSpaceFactorSWave,\n",
")\n",
"model_builder.set_dynamics(\n",
"model_builder.dynamics.assign(\n",
" \"D0\",\n",
" create_non_dynamic_with_ff,\n",
")\n",
"model_builder.set_dynamics(\n",
"model_builder.dynamics.assign(\n",
" \"a(0)(980)0\",\n",
" analytic_breit_wigner_builder,\n",
")\n",
"model_builder.set_dynamics(\n",
"model_builder.dynamics.assign(\n",
" \"a(2)(1320)0\",\n",
" create_relativistic_breit_wigner_with_ff,\n",
")\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/faster-lambdify.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
")\n",
"model_builder = ampform.get_builder(reaction)\n",
"for name in reaction.get_intermediate_particles().names:\n",
" model_builder.set_dynamics(name, create_relativistic_breit_wigner_with_ff)\n",
" model_builder.dynamics.assign(name, create_relativistic_breit_wigner_with_ff)\n",
"model = model_builder.formulate()"
]
},
Expand Down

0 comments on commit bcb9f21

Please sign in to comment.