Skip to content

Commit

Permalink
FIX: run k, m, l over 0 only
Browse files Browse the repository at this point in the history
* DOC: shorten notebook titles
  Looks better on the HTML rendering
  • Loading branch information
redeboer committed Aug 1, 2023
1 parent 2aca627 commit 3c5baa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ipynb
8 changes: 4 additions & 4 deletions docs/gluex-amplitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# GlueX amplitude model with SymPy"
"# Symbolic amplitude model"
]
},
{
Expand Down Expand Up @@ -208,10 +208,10 @@
"\n",
"\n",
"def create_range(__min, __max) -> tuple[sp.Rational, ...]:\n",
" return tuple(sp.Rational(x) for x in arange(__min, __max))\n",
" return tuple(sp.Rational(x) for x in arange(__min, __max + 1))\n",
"\n",
"\n",
"max_l = 1\n",
"max_l = 0\n",
"l_range = create_range(0, max_l)\n",
"m_range = create_range(-max_l, max_l)\n",
"lp = sp.IndexedBase(\"[l]^{(+)}\", complex=True)\n",
Expand All @@ -228,7 +228,7 @@
" * (PoolSum(lp[m, k] * sp.re(znm), (l, l_range), (m, m_range))) ** 2\n",
" + (1 + Py)\n",
" * (PoolSum(lm[m, k] * sp.im(znm), (l, l_range), (m, m_range))) ** 2,\n",
" (k, [-1, +1]),\n",
" (k, [0]),\n",
" )\n",
")\n",
"intensity_expr"
Expand Down

0 comments on commit 3c5baa9

Please sign in to comment.