Skip to content

Commit

Permalink
fix: remove bug lambdification BoostZ (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Nov 3, 2021
1 parent 5b129ff commit 4406098
Showing 1 changed file with 5 additions and 46 deletions.
51 changes: 5 additions & 46 deletions docs/report/011.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@
" self.module_imports[\"numpy\"].update({\"array\", \"ones\", \"zeros\", \"sqrt\"})\n",
" arg = expr.args[0]\n",
" beta = self._print(arg)\n",
" gamma = f\"1 / sqrt(1 - {beta} ** 2)\"\n",
" gamma = f\"1 / sqrt(1 - ({beta}) ** 2)\"\n",
" n_events = f\"len({beta})\"\n",
" zeros = f\"zeros({n_events})\"\n",
" ones = f\"ones({n_events})\"\n",
Expand Down Expand Up @@ -1479,51 +1479,10 @@
"metadata": {},
"outputs": [],
"source": [
"compare(\"phi_1+2+3\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"compare(\"theta_1+2+3\")"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
":::{warning}\n",
"\n",
"The expression lambdified to {mod}`numpy` for the recursive angles does not yet work.\n",
"\n",
":::"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"compare(\"phi_2+3,1+2+3\")"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": [
"raises-exception"
]
},
"outputs": [],
"source": [
"compare(\"theta_2+3,1+2+3\")"
"for angle_name in symbolic_angles:\n",
" print(angle_name)\n",
" %time compare(angle_name)\n",
" print()"
]
}
],
Expand Down

0 comments on commit 4406098

Please sign in to comment.