Skip to content

Commit

Permalink
MAINT: remove redundant notebook cell metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Aug 6, 2024
1 parent 51e383f commit ae95d1d
Show file tree
Hide file tree
Showing 13 changed files with 70 additions and 254 deletions.
28 changes: 7 additions & 21 deletions docs/usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"import sympy as sp\n",
Expand All @@ -118,9 +116,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics import relativistic_breit_wigner_with_ff\n",
Expand All @@ -140,9 +136,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics.kmatrix import NonRelativisticKMatrix\n",
Expand All @@ -157,9 +151,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"matrix = NonRelativisticKMatrix.formulate(n_poles=1, n_channels=2)\n",
Expand Down Expand Up @@ -190,9 +182,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"import qrules\n",
Expand All @@ -208,9 +198,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"import ampform\n",
Expand Down Expand Up @@ -253,9 +241,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"reaction = qrules.generate_transitions(\n",
Expand Down
19 changes: 5 additions & 14 deletions docs/usage/amplitude.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"## Generate transitions"
]
Expand Down Expand Up @@ -246,9 +244,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"intensities = model_no_dynamics.expression.args\n",
Expand All @@ -263,9 +259,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"some_amplitude.doit()"
Expand Down Expand Up @@ -372,8 +366,7 @@
{
"cell_type": "markdown",
"metadata": {
"jp-MarkdownHeadingCollapsed": true,
"tags": []
"jp-MarkdownHeadingCollapsed": true
},
"source": [
"#### Scalar masses"
Expand Down Expand Up @@ -697,9 +690,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"some_amplitude, *_ = model.components.values()\n",
Expand Down
43 changes: 8 additions & 35 deletions docs/usage/dynamics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"# Dynamics"
]
Expand Down Expand Up @@ -120,9 +118,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"## Form factor"
]
Expand All @@ -137,9 +133,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics.form_factor import BlattWeisskopfSquared\n",
Expand All @@ -153,13 +147,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-input"
]
Expand All @@ -178,13 +168,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-input"
]
Expand Down Expand Up @@ -236,13 +222,9 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"editable": true,
"jupyter": {
"source_hidden": true
},
"slideshow": {
"slide_type": ""
},
"tags": [
"hide-input"
]
Expand Down Expand Up @@ -374,9 +356,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"### _Without_ form factor"
]
Expand All @@ -391,9 +371,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics import relativistic_breit_wigner\n",
Expand All @@ -420,9 +398,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics import PhaseSpaceFactorSWave, relativistic_breit_wigner_with_ff\n",
Expand Down Expand Up @@ -453,8 +429,7 @@
"metadata": {
"jupyter": {
"source_hidden": true
},
"tags": []
}
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -483,9 +458,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"### Analytic continuation"
]
Expand Down
24 changes: 6 additions & 18 deletions docs/usage/dynamics/analytic-continuation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics import BreakupMomentumSquared\n",
Expand Down Expand Up @@ -215,9 +213,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.dynamics import EqualMassPhaseSpaceFactor\n",
Expand Down Expand Up @@ -261,9 +257,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"### 5) Chew-Mandelstam for $S$-waves"
]
Expand Down Expand Up @@ -293,9 +287,7 @@
},
{
"cell_type": "markdown",
"metadata": {
"tags": []
},
"metadata": {},
"source": [
"## Visualization"
]
Expand Down Expand Up @@ -340,9 +332,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"from ampform.sympy.math import ComplexSqrt\n",
Expand Down Expand Up @@ -370,9 +360,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"plot_domain = np.linspace(0, 3, 500)\n",
Expand Down
8 changes: 2 additions & 6 deletions docs/usage/dynamics/custom.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"import inspect\n",
Expand Down Expand Up @@ -301,9 +299,7 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"tags": []
},
"metadata": {},
"outputs": [],
"source": [
"m, theta = free_symbols\n",
Expand Down
Loading

0 comments on commit ae95d1d

Please sign in to comment.