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

fix: remove bug lambdification BoostZ in TR-011 #82

Merged
merged 1 commit into from
Nov 3, 2021
Merged
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
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