-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX: switch to Python 3.10 in dev environment (#237)
- Loading branch information
Showing
10 changed files
with
25 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -258,6 +258,7 @@ | |
"pdg's", | ||
"phasespace", | ||
"phsp", | ||
"pkpi", | ||
"pmatrix", | ||
"preorder", | ||
"prereleased", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"%pip install -q graphviz==0.20.1 sympy==1.12 git+https://github.com/ComPWA/polarimetry@0.0.9 git+https://github.com/redeboer/[email protected]" | ||
"%pip install -q ampform==0.14.8 graphviz==0.20.1 polarimetry-lc2pkpi==0.0.10 sympy==1.12" | ||
] | ||
}, | ||
{ | ||
|
@@ -115,7 +115,7 @@ | |
"import polarimetry\n", | ||
"import sympy as sp\n", | ||
"from ampform.io import aslatex\n", | ||
"from ampform.sympy import unevaluated_expression\n", | ||
"from ampform.sympy import unevaluated\n", | ||
"from IPython.display import Markdown, Math\n", | ||
"from polarimetry.amplitude import simplify_latex_rendering\n", | ||
"from polarimetry.io import perform_cached_doit\n", | ||
|
@@ -349,7 +349,7 @@ | |
"tags": [] | ||
}, | ||
"source": [ | ||
"The previous example is quite simple, but SymPy works just as well with huge expressions, as we will see in [Large expressions](#large-expressions). Before, though, let's have a look how to define these larger expressions in such a way that we can still read them. A nice solution is to define {class}`sp.Expr <sympy.core.expr.Expr>` classes with the `@unevaluated_expression` decorator (see [ComPWA/ampform#364](https://github.com/ComPWA/ampform/issues/364)). Here, we define a Chew-Mandelstam function $\\rho^\\text{CM}$ for $S$-waves. This function requires the definition of a break-up momentum $q$." | ||
"The previous example is quite simple, but SymPy works just as well with huge expressions, as we will see in [Large expressions](#large-expressions). Before, though, let's have a look how to define these larger expressions in such a way that we can still read them. A nice solution is to define {class}`sp.Expr <sympy.core.expr.Expr>` classes with the `@unevaluated` decorator (see [ComPWA/ampform#364](https://github.com/ComPWA/ampform/issues/364)). Here, we define a Chew-Mandelstam function $\\rho^\\text{CM}$ for $S$-waves. This function requires the definition of a break-up momentum $q$." | ||
] | ||
}, | ||
{ | ||
|
@@ -364,7 +364,7 @@ | |
}, | ||
"outputs": [], | ||
"source": [ | ||
"@unevaluated_expression(real=False)\n", | ||
"@unevaluated(real=False)\n", | ||
"class PhspFactorSWave(sp.Expr):\n", | ||
" s: sp.Symbol\n", | ||
" m1: sp.Symbol\n", | ||
|
@@ -382,7 +382,7 @@ | |
" return 16 * sp.pi * sp.I * cm\n", | ||
"\n", | ||
"\n", | ||
"@unevaluated_expression(real=False)\n", | ||
"@unevaluated(real=False)\n", | ||
"class BreakupMomentum(sp.Expr):\n", | ||
" s: sp.Symbol\n", | ||
" m1: sp.Symbol\n", | ||
|
@@ -1185,7 +1185,7 @@ | |
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.8.18" | ||
"version": "3.10.13" | ||
} | ||
}, | ||
"nbformat": 4, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters