Skip to content

Commit

Permalink
MAINT: remove redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Apr 26, 2024
1 parent 5c12005 commit e821552
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions docs/jpsi2ksp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -299,26 +299,17 @@
" s = _get_mandelstam_s(decay_chain)\n",
" parameter_defaults = {}\n",
" production_ff, new_pars = _create_form_factor(s, production_node)\n",
" _is_messed_up(new_pars)\n",
" parameter_defaults.update(new_pars)\n",
" decay_ff, new_pars = _create_form_factor(s, decay_node)\n",
" _is_messed_up(new_pars)\n",
" parameter_defaults.update(new_pars)\n",
" breit_wigner, new_pars = _create_breit_wigner(s, decay_node)\n",
" _is_messed_up(new_pars)\n",
" parameter_defaults.update(new_pars)\n",
" return (\n",
" production_ff * decay_ff * breit_wigner,\n",
" parameter_defaults,\n",
" )\n",
"\n",
"\n",
"def _is_messed_up(parameter_defaults):\n",
" for key in parameter_defaults:\n",
" if key.name == \"m0\" and not key.is_nonnegative:\n",
" raise ValueError\n",
"\n",
"\n",
"def _create_form_factor(\n",
" s: sp.Symbol, isobar: IsobarNode\n",
") -> tuple[sp.Expr, dict[sp.Symbol, float]]:\n",
Expand Down

0 comments on commit e821552

Please sign in to comment.