tensorwaves 0.4.17__tar.gz → 0.4.19__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.cspell.json +23 -2
- tensorwaves-0.4.19/.envrc +1 -0
- tensorwaves-0.4.19/.gitattributes +1 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/benchmark.yml +5 -5
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/cd.yml +8 -7
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/ci.yml +9 -6
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/clean-caches.yml +1 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/lock.yml +1 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/pr-linting.yml +1 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/redirect-gh-pages.yml +2 -2
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/workflows/release-drafter.yml +1 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.gitignore +10 -6
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.pre-commit-config.yaml +16 -13
- tensorwaves-0.4.19/.readthedocs.yml +17 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.vscode/extensions.json +0 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.vscode/settings.json +2 -18
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/CONTRIBUTING.md +5 -5
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/PKG-INFO +7 -15
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/README.md +4 -11
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/ampform.py +11 -10
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/precision.py +2 -2
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/unbinned_nll.py +10 -13
- tensorwaves-0.4.19/codecov.yml +7 -0
- tensorwaves-0.4.19/docs/_static/mermaid.css +13 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/amplitude-analysis/analytic-continuation.ipynb +13 -17
- tensorwaves-0.4.19/docs/amplitude-analysis/phase-space.ipynb +320 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/amplitude-analysis.ipynb +58 -67
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/conf.py +20 -15
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/index.md +3 -8
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/install.md +18 -49
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/basics.ipynb +38 -55
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/binned-fit.ipynb +3 -3
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/caching.ipynb +11 -9
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/chi-squared.ipynb +2 -2
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/faster-lambdify.ipynb +6 -9
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage/unbinned-fit.ipynb +4 -4
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/usage.ipynb +15 -30
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/pyproject.toml +67 -34
- tensorwaves-0.4.19/src/tensorwaves/__init__.py +31 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/data/__init__.py +16 -17
- tensorwaves-0.4.19/src/tensorwaves/data/phasespace.py +215 -0
- tensorwaves-0.4.19/src/tensorwaves/data/rng.py +173 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/data/transform.py +3 -4
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/estimator.py +52 -46
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/function/__init__.py +6 -2
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/function/_backend.py +3 -4
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/function/sympy/__init__.py +71 -73
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/function/sympy/_printer.py +3 -3
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/interface.py +6 -6
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/optimizer/__init__.py +2 -2
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/optimizer/callbacks.py +15 -17
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/optimizer/minuit.py +10 -11
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/optimizer/scipy.py +3 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/version.py +3 -3
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/PKG-INFO +7 -15
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/SOURCES.txt +3 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/requires.txt +1 -1
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/scm_file_list.json +83 -80
- tensorwaves-0.4.19/src/tensorwaves.egg-info/scm_version.json +8 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/data/test_data.py +32 -23
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/data/test_phasespace.py +153 -9
- tensorwaves-0.4.19/tests/data/test_rng.py +90 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/data/test_transform.py +11 -11
- tensorwaves-0.4.19/tests/function/test_ampform.py +71 -0
- tensorwaves-0.4.19/tests/function/test_backend.py +32 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/function/test_function.py +35 -26
- tensorwaves-0.4.19/tests/function/test_sympy.py +196 -0
- tensorwaves-0.4.19/tests/optimizer/__init__.py +120 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/optimizer/test_callbacks.py +2 -2
- tensorwaves-0.4.19/tests/optimizer/test_fit_simple_model.py +226 -0
- tensorwaves-0.4.19/tests/optimizer/test_gradient.py +150 -0
- tensorwaves-0.4.19/tests/optimizer/test_minuit.py +56 -0
- tensorwaves-0.4.19/tests/optimizer/test_parameter.py +51 -0
- tensorwaves-0.4.19/tests/optimizer/test_scipy.py +50 -0
- tensorwaves-0.4.19/tests/test_config.py +175 -0
- tensorwaves-0.4.19/tests/test_estimator.py +271 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/test_interface.py +5 -5
- tensorwaves-0.4.19/uv.lock +5892 -0
- tensorwaves-0.4.17/.envrc +0 -2
- tensorwaves-0.4.17/.readthedocs.yml +0 -19
- tensorwaves-0.4.17/codecov.yml +0 -38
- tensorwaves-0.4.17/src/tensorwaves/__init__.py +0 -31
- tensorwaves-0.4.17/src/tensorwaves/data/phasespace.py +0 -142
- tensorwaves-0.4.17/src/tensorwaves/data/rng.py +0 -88
- tensorwaves-0.4.17/src/tensorwaves.egg-info/scm_version.json +0 -8
- tensorwaves-0.4.17/tests/data/test_rng.py +0 -44
- tensorwaves-0.4.17/tests/function/test_ampform.py +0 -67
- tensorwaves-0.4.17/tests/function/test_backend.py +0 -29
- tensorwaves-0.4.17/tests/function/test_sympy.py +0 -191
- tensorwaves-0.4.17/tests/optimizer/__init__.py +0 -54
- tensorwaves-0.4.17/tests/optimizer/test_fit_simple_model.py +0 -226
- tensorwaves-0.4.17/tests/optimizer/test_gradient.py +0 -151
- tensorwaves-0.4.17/tests/optimizer/test_minuit.py +0 -114
- tensorwaves-0.4.17/tests/optimizer/test_parameter.py +0 -52
- tensorwaves-0.4.17/tests/optimizer/test_scipy.py +0 -107
- tensorwaves-0.4.17/tests/test_config.py +0 -176
- tensorwaves-0.4.17/tests/test_estimator.py +0 -237
- tensorwaves-0.4.17/uv.lock +0 -6230
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.binder/apt.txt +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.binder/postBuild +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.binder/runtime.txt +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.editorconfig +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/dependabot.yml +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.github/release-drafter.yml +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.prettierignore +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.python-version +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/.vscode/launch.json +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/CITATION.cff +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/LICENSE +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/__init__.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/conftest.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/benchmarks/expression.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/.gitignore +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/_static/favicon.ico +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/_static/linebreaks-api.css +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/docs/tensorflow.txt +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/setup.cfg +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/config.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/data/_attrs.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/data/_data_sample.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/optimizer/parameter.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves/py.typed +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/dependency_links.txt +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/src/tensorwaves.egg-info/top_level.txt +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/__init__.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/conftest.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/data/__init__.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/function/__init__.py +0 -0
- {tensorwaves-0.4.17 → tensorwaves-0.4.19}/tests/output/.gitignore +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"allowCompoundWords":
|
|
2
|
+
"allowCompoundWords": false,
|
|
3
3
|
"enableFiletypes": [
|
|
4
4
|
"git-commit",
|
|
5
5
|
"github-actions-workflow",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"*.ico",
|
|
25
25
|
".editorconfig",
|
|
26
26
|
".envrc",
|
|
27
|
+
".gitattributes",
|
|
27
28
|
".github/dependabot.yml",
|
|
28
29
|
".gitignore",
|
|
29
30
|
".pre-commit-config.yaml",
|
|
@@ -43,15 +44,19 @@
|
|
|
43
44
|
"allclose",
|
|
44
45
|
"ampform",
|
|
45
46
|
"arange",
|
|
46
|
-
"
|
|
47
|
+
"argnames",
|
|
48
|
+
"argvalues",
|
|
47
49
|
"aslatex",
|
|
50
|
+
"asmermaid",
|
|
48
51
|
"atfi",
|
|
52
|
+
"automethod",
|
|
49
53
|
"autoupdate",
|
|
50
54
|
"axhline",
|
|
51
55
|
"axvline",
|
|
52
56
|
"bdist",
|
|
53
57
|
"bgcolor",
|
|
54
58
|
"cano",
|
|
59
|
+
"caplog",
|
|
55
60
|
"capsys",
|
|
56
61
|
"celltoolbar",
|
|
57
62
|
"classmethod",
|
|
@@ -72,14 +77,17 @@
|
|
|
72
77
|
"dphi",
|
|
73
78
|
"dtype",
|
|
74
79
|
"eqnarray",
|
|
80
|
+
"errordef",
|
|
75
81
|
"eval",
|
|
76
82
|
"evalf",
|
|
77
83
|
"figsize",
|
|
78
84
|
"filterwarnings",
|
|
79
85
|
"fmin",
|
|
80
86
|
"fontsize",
|
|
87
|
+
"forceobj",
|
|
81
88
|
"fval",
|
|
82
89
|
"genindex",
|
|
90
|
+
"getfixturevalue",
|
|
83
91
|
"getsource",
|
|
84
92
|
"gridspec",
|
|
85
93
|
"heli",
|
|
@@ -88,6 +96,7 @@
|
|
|
88
96
|
"iloc",
|
|
89
97
|
"imag",
|
|
90
98
|
"iminuit",
|
|
99
|
+
"indentless",
|
|
91
100
|
"indeterministic",
|
|
92
101
|
"ioff",
|
|
93
102
|
"ipykernel",
|
|
@@ -109,10 +118,14 @@
|
|
|
109
118
|
"logdir",
|
|
110
119
|
"macos",
|
|
111
120
|
"mathbf",
|
|
121
|
+
"mathcal",
|
|
112
122
|
"mathrm",
|
|
113
123
|
"maxdepth",
|
|
124
|
+
"maxval",
|
|
114
125
|
"meshgrid",
|
|
126
|
+
"migrad",
|
|
115
127
|
"mimetype",
|
|
128
|
+
"minval",
|
|
116
129
|
"modindex",
|
|
117
130
|
"mprime",
|
|
118
131
|
"nbconvert",
|
|
@@ -129,16 +142,20 @@
|
|
|
129
142
|
"noreply",
|
|
130
143
|
"nrows",
|
|
131
144
|
"numba",
|
|
145
|
+
"numpycode",
|
|
132
146
|
"outfile",
|
|
133
147
|
"pandoc",
|
|
134
148
|
"pcolormesh",
|
|
135
149
|
"phasespace",
|
|
136
150
|
"phsp",
|
|
151
|
+
"poethepoet",
|
|
137
152
|
"prange",
|
|
138
153
|
"precommit",
|
|
139
154
|
"prefactor",
|
|
155
|
+
"prek",
|
|
140
156
|
"preorder",
|
|
141
157
|
"prereleased",
|
|
158
|
+
"printmethod",
|
|
142
159
|
"pwa's",
|
|
143
160
|
"py's",
|
|
144
161
|
"pygments",
|
|
@@ -148,13 +165,16 @@
|
|
|
148
165
|
"pytestconfig",
|
|
149
166
|
"qrules",
|
|
150
167
|
"rightarrow",
|
|
168
|
+
"rowdict",
|
|
151
169
|
"rtfd",
|
|
152
170
|
"rtol",
|
|
171
|
+
"scimath",
|
|
153
172
|
"scipy",
|
|
154
173
|
"sdist",
|
|
155
174
|
"seealso",
|
|
156
175
|
"sharex",
|
|
157
176
|
"sharey",
|
|
177
|
+
"sphinxcontrib",
|
|
158
178
|
"startswith",
|
|
159
179
|
"staticmethod",
|
|
160
180
|
"subsys",
|
|
@@ -166,6 +186,7 @@
|
|
|
166
186
|
"unflattened",
|
|
167
187
|
"unnormalized",
|
|
168
188
|
"unsubscriptable",
|
|
189
|
+
"usefixtures",
|
|
169
190
|
"vstack",
|
|
170
191
|
"waves's",
|
|
171
192
|
"wspace",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
layout uv --all-extras --quiet
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -18,18 +18,18 @@ jobs:
|
|
|
18
18
|
name: Performance regression
|
|
19
19
|
runs-on: ubuntu-24.04
|
|
20
20
|
steps:
|
|
21
|
-
- uses: actions/checkout@v7
|
|
21
|
+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
22
22
|
with:
|
|
23
23
|
fetch-depth: 0
|
|
24
|
-
- uses: actions/setup-python@
|
|
24
|
+
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
|
|
25
25
|
with:
|
|
26
26
|
python-version: "3.13"
|
|
27
|
-
- uses: astral-sh/setup-uv@
|
|
27
|
+
- uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
|
|
28
28
|
- name: Run pytest-benchmark
|
|
29
29
|
run: uvx --from poethepoet poe benchmark
|
|
30
30
|
- name: Warn on performance decrease
|
|
31
31
|
if: github.event_name == 'pull_request'
|
|
32
|
-
uses: benchmark-action/github-action-benchmark@v1
|
|
32
|
+
uses: benchmark-action/github-action-benchmark@4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
|
|
33
33
|
with:
|
|
34
34
|
benchmark-data-dir-path: ""
|
|
35
35
|
comment-on-alert: true
|
|
@@ -41,7 +41,7 @@ jobs:
|
|
|
41
41
|
tool: pytest
|
|
42
42
|
- name: Create local benchmark data repository
|
|
43
43
|
if: github.event_name != 'pull_request'
|
|
44
|
-
uses: benchmark-action/github-action-benchmark@v1
|
|
44
|
+
uses: benchmark-action/github-action-benchmark@4322e5726e6334590d251fc4f92bec0efafc45dc # v1.22.2
|
|
45
45
|
with:
|
|
46
46
|
benchmark-data-dir-path: ""
|
|
47
47
|
gh-repository: github.com/ComPWA/tensorwaves-benchmark-results
|
|
@@ -9,9 +9,9 @@ on:
|
|
|
9
9
|
jobs:
|
|
10
10
|
milestone:
|
|
11
11
|
if: startsWith(github.ref, 'refs/tags')
|
|
12
|
-
uses: ComPWA/actions/.github/workflows/close-milestone.yml@v4
|
|
12
|
+
uses: ComPWA/actions/.github/workflows/close-milestone.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
13
13
|
package-name:
|
|
14
|
-
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@v4
|
|
14
|
+
uses: ComPWA/actions/.github/workflows/get-pypi-name.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
15
15
|
pypi:
|
|
16
16
|
environment:
|
|
17
17
|
name: PyPI
|
|
@@ -22,11 +22,12 @@ jobs:
|
|
|
22
22
|
- package-name
|
|
23
23
|
permissions:
|
|
24
24
|
id-token: write
|
|
25
|
-
runs-on: ubuntu-
|
|
25
|
+
runs-on: ubuntu-26.04
|
|
26
26
|
steps:
|
|
27
|
-
- uses: ComPWA/actions/build-pypi-distribution@v4
|
|
28
|
-
- uses: pypa/gh-action-pypi-publish@
|
|
27
|
+
- uses: ComPWA/actions/build-pypi-distribution@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
28
|
+
- uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
|
|
29
29
|
push:
|
|
30
30
|
if: startsWith(github.ref, 'refs/tags') && !github.event.release.prerelease
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
permissions:
|
|
32
|
+
contents: write
|
|
33
|
+
uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
@@ -20,22 +20,25 @@ on:
|
|
|
20
20
|
|
|
21
21
|
jobs:
|
|
22
22
|
doc:
|
|
23
|
-
uses: ComPWA/actions/.github/workflows/ci-docs.yml@v4.
|
|
23
|
+
uses: ComPWA/actions/.github/workflows/ci-docs.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
24
24
|
permissions:
|
|
25
25
|
pages: write
|
|
26
26
|
id-token: write
|
|
27
27
|
with:
|
|
28
28
|
apt-packages: graphviz
|
|
29
|
+
python-version: "3.13"
|
|
29
30
|
style:
|
|
30
31
|
secrets:
|
|
31
32
|
token: ${{ secrets.PAT }}
|
|
32
|
-
uses: ComPWA/actions/.github/workflows/style.yml@v4.
|
|
33
|
+
uses: ComPWA/actions/.github/workflows/style.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
34
|
+
with:
|
|
35
|
+
python-version: "3.13"
|
|
33
36
|
test:
|
|
34
|
-
uses: ComPWA/actions/.github/workflows/test.yml@v4.
|
|
35
|
-
secrets:
|
|
36
|
-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
|
37
|
+
uses: ComPWA/actions/.github/workflows/test.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
37
38
|
with:
|
|
38
39
|
coverage-python-version: "3.13"
|
|
39
|
-
macos-python-version: "3.
|
|
40
|
+
macos-python-version: "3.11"
|
|
41
|
+
macos-runner: macos-latest
|
|
40
42
|
multithreaded: false
|
|
41
43
|
test-output-path: tests/output/
|
|
44
|
+
ubuntu-runner: ubuntu-26.04
|
|
@@ -16,7 +16,7 @@ jobs:
|
|
|
16
16
|
name: Remove caches
|
|
17
17
|
runs-on: ubuntu-slim
|
|
18
18
|
steps:
|
|
19
|
-
- uses: ComPWA/actions/clean-caches@v4
|
|
19
|
+
- uses: ComPWA/actions/clean-caches@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
|
|
20
20
|
with:
|
|
21
21
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
22
22
|
ref: ${{ inputs.ref }}
|
|
@@ -26,7 +26,7 @@ jobs:
|
|
|
26
26
|
</body>
|
|
27
27
|
</html>' > build/index.html
|
|
28
28
|
- id: deployment
|
|
29
|
-
uses: actions/upload-pages-artifact@v5
|
|
29
|
+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
|
|
30
30
|
with:
|
|
31
31
|
path: build/
|
|
32
32
|
|
|
@@ -41,4 +41,4 @@ jobs:
|
|
|
41
41
|
runs-on: ubuntu-24.04
|
|
42
42
|
steps:
|
|
43
43
|
- id: deployment
|
|
44
|
-
uses: actions/deploy-pages@v5
|
|
44
|
+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1
|
|
@@ -25,6 +25,7 @@ version.py
|
|
|
25
25
|
.coverage.*
|
|
26
26
|
.ipynb_checkpoints/
|
|
27
27
|
.jupyter_ystore.db
|
|
28
|
+
.lycheecache
|
|
28
29
|
.pytest_cache/
|
|
29
30
|
.virtual_documents/
|
|
30
31
|
__pycache__/
|
|
@@ -39,11 +40,15 @@ pyvenv*/
|
|
|
39
40
|
# Settings
|
|
40
41
|
.idea/
|
|
41
42
|
**.code-workspace
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/
|
|
46
|
-
/
|
|
43
|
+
|
|
44
|
+
# Agent tooling
|
|
45
|
+
.agents/
|
|
46
|
+
.claude/
|
|
47
|
+
.codex/
|
|
48
|
+
.gemini/
|
|
49
|
+
AGENTS.md
|
|
50
|
+
CLAUDE.md
|
|
51
|
+
GEMINI.md
|
|
47
52
|
|
|
48
53
|
# Exceptions
|
|
49
54
|
!.cspell.json
|
|
@@ -52,5 +57,4 @@ pyvenv*/
|
|
|
52
57
|
!.pre-commit-config.yaml
|
|
53
58
|
!.readthedocs.yml
|
|
54
59
|
!.vscode/*.json
|
|
55
|
-
!.zenodo.json
|
|
56
60
|
!codecov.yml
|
|
@@ -16,12 +16,12 @@ repos:
|
|
|
16
16
|
- id: check-useless-excludes
|
|
17
17
|
|
|
18
18
|
- repo: https://github.com/ComPWA/policy
|
|
19
|
-
rev: 0.9
|
|
19
|
+
rev: 0.10.9
|
|
20
20
|
hooks:
|
|
21
21
|
- id: check-dev-files
|
|
22
22
|
|
|
23
23
|
- repo: https://github.com/kynan/nbstripout
|
|
24
|
-
rev: 0.9.
|
|
24
|
+
rev: 0.9.2
|
|
25
25
|
hooks:
|
|
26
26
|
- id: nbstripout
|
|
27
27
|
args:
|
|
@@ -49,7 +49,7 @@ repos:
|
|
|
49
49
|
metadata.vscode
|
|
50
50
|
|
|
51
51
|
- repo: https://github.com/ComPWA/nbhooks
|
|
52
|
-
rev: 0.0.
|
|
52
|
+
rev: 0.0.2
|
|
53
53
|
hooks:
|
|
54
54
|
- id: colab-toc-visible
|
|
55
55
|
- id: fix-nbformat-version
|
|
@@ -60,13 +60,11 @@ repos:
|
|
|
60
60
|
- id: strip-nb-whitespace
|
|
61
61
|
|
|
62
62
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
63
|
-
rev: v0.
|
|
63
|
+
rev: v0.17.5
|
|
64
64
|
hooks:
|
|
65
65
|
- id: ruff-check
|
|
66
66
|
args: [--fix]
|
|
67
|
-
types_or: [python, pyi, jupyter]
|
|
68
67
|
- id: ruff-format
|
|
69
|
-
types_or: [python, pyi, jupyter]
|
|
70
68
|
|
|
71
69
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
72
70
|
rev: v6.0.0
|
|
@@ -96,19 +94,19 @@ repos:
|
|
|
96
94
|
- id: trailing-whitespace
|
|
97
95
|
|
|
98
96
|
- repo: https://github.com/tombi-toml/tombi-pre-commit
|
|
99
|
-
rev: v1.
|
|
97
|
+
rev: v1.11.3
|
|
100
98
|
hooks:
|
|
101
99
|
- id: tombi-format
|
|
102
100
|
- id: tombi-lint
|
|
103
101
|
args: [--error-on-warnings]
|
|
104
102
|
|
|
105
103
|
- repo: https://github.com/ComPWA/prettier-pre-commit
|
|
106
|
-
rev: v3.
|
|
104
|
+
rev: v3.10.1
|
|
107
105
|
hooks:
|
|
108
106
|
- id: prettier
|
|
109
107
|
|
|
110
108
|
- repo: https://github.com/python-jsonschema/check-jsonschema
|
|
111
|
-
rev: 0.
|
|
109
|
+
rev: 0.39.0
|
|
112
110
|
hooks:
|
|
113
111
|
- id: check-jsonschema
|
|
114
112
|
name: Check CITATION.cff
|
|
@@ -121,12 +119,17 @@ repos:
|
|
|
121
119
|
pass_filenames: false
|
|
122
120
|
|
|
123
121
|
- repo: https://github.com/streetsidesoftware/cspell-cli
|
|
124
|
-
rev: v10.
|
|
122
|
+
rev: v10.4.1
|
|
125
123
|
hooks:
|
|
126
124
|
- id: cspell
|
|
127
125
|
|
|
126
|
+
- repo: https://github.com/LilSpazJoekp/docstrfmt
|
|
127
|
+
rev: v2.2.1
|
|
128
|
+
hooks:
|
|
129
|
+
- id: docstrfmt
|
|
130
|
+
|
|
128
131
|
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
|
|
129
|
-
rev: 3.
|
|
132
|
+
rev: 3.11.1
|
|
130
133
|
hooks:
|
|
131
134
|
- id: editorconfig-checker
|
|
132
135
|
name: editorconfig
|
|
@@ -137,12 +140,12 @@ repos:
|
|
|
137
140
|
)$
|
|
138
141
|
|
|
139
142
|
- repo: https://github.com/astral-sh/ty-pre-commit
|
|
140
|
-
rev: v0.0.
|
|
143
|
+
rev: v0.0.107
|
|
141
144
|
hooks:
|
|
142
145
|
- id: ty
|
|
143
146
|
args: [--group=types, --no-default-groups]
|
|
144
147
|
|
|
145
148
|
- repo: https://github.com/astral-sh/uv-pre-commit
|
|
146
|
-
rev: 0.
|
|
149
|
+
rev: 0.13.9
|
|
147
150
|
hooks:
|
|
148
151
|
- id: uv-lock
|
|
@@ -7,13 +7,9 @@
|
|
|
7
7
|
"rewrap.wrappingColumn": 72
|
|
8
8
|
},
|
|
9
9
|
"[json]": {
|
|
10
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
11
10
|
"editor.wordWrap": "on"
|
|
12
11
|
},
|
|
13
|
-
"[jsonc]": {
|
|
14
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
15
|
-
},
|
|
16
|
-
"[markdown]": {
|
|
12
|
+
"[json][jsonc][markdown][yaml]": {
|
|
17
13
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
18
14
|
},
|
|
19
15
|
"[python]": {
|
|
@@ -26,9 +22,6 @@
|
|
|
26
22
|
"[toml]": {
|
|
27
23
|
"editor.defaultFormatter": "tombi-toml.tombi"
|
|
28
24
|
},
|
|
29
|
-
"[yaml]": {
|
|
30
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
|
31
|
-
},
|
|
32
25
|
"cSpell.enabled": true,
|
|
33
26
|
"diffEditor.experimental.showMoves": true,
|
|
34
27
|
"editor.formatOnSave": true,
|
|
@@ -40,14 +33,9 @@
|
|
|
40
33
|
{
|
|
41
34
|
"fileMatch": ["*particle*.json"],
|
|
42
35
|
"url": "https://raw.githubusercontent.com/ComPWA/qrules/0.8.0a1/src/qrules/particle-validation.json"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"fileMatch": [".zenodo.json"],
|
|
46
|
-
"url": "https://zenodo.org/schemas/deposits/records/legacyrecord.json"
|
|
47
36
|
}
|
|
48
37
|
],
|
|
49
38
|
"livePreview.defaultPreviewPath": "docs/_build/html",
|
|
50
|
-
"multiDiffEditor.experimental.enabled": true,
|
|
51
39
|
"notebook.codeActionsOnSave": {
|
|
52
40
|
"notebook.source.organizeImports": "explicit"
|
|
53
41
|
},
|
|
@@ -72,9 +60,5 @@
|
|
|
72
60
|
"testing.showCoverageInExplorer": true,
|
|
73
61
|
"ty.completions.autoImport": false,
|
|
74
62
|
"ty.diagnosticMode": "workspace",
|
|
75
|
-
"ty.importStrategy": "fromEnvironment"
|
|
76
|
-
"yaml.schemas": {
|
|
77
|
-
"https://citation-file-format.github.io/1.2.0/schema.json": "CITATION.cff",
|
|
78
|
-
"https://json.schemastore.org/github-workflow.json": "./.github/workflows/requirements.yml"
|
|
79
|
-
}
|
|
63
|
+
"ty.importStrategy": "fromEnvironment"
|
|
80
64
|
}
|
|
@@ -19,22 +19,22 @@ uv sync --all-extras
|
|
|
19
19
|
source .venv/bin/activate
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
Formatting and linting checks are automatically performed when committing changes. This is done with [pre-commit](https://pre-commit.com). To install the hooks in your local repository,
|
|
22
|
+
Formatting and linting checks are automatically performed when committing changes. This is done with [prek](https://prek.j178.dev), a drop-in replacement for [pre-commit](https://pre-commit.com) that reads the same `.pre-commit-config.yaml` file. To install the hooks in your local repository, [install `prek`](https://prek.j178.dev/installation) with `uv`:
|
|
23
23
|
|
|
24
24
|
```shell
|
|
25
|
-
uv tool install
|
|
25
|
+
uv tool install prek --force-reinstall
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
and [`
|
|
28
|
+
and run [`prek install`](https://prek.j178.dev/reference/cli/) **once**:
|
|
29
29
|
|
|
30
30
|
```shell
|
|
31
|
-
|
|
31
|
+
prek install --prepare-hooks
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
[Poe the Poet](https://poethepoet.natn.io) is used as a task runner. Install it globally (within your home folder) with `uv`:
|
|
35
35
|
|
|
36
36
|
```shell
|
|
37
|
-
uv tool install poethepoet --force-reinstall --python=3.
|
|
37
|
+
uv tool install poethepoet --force-reinstall --python=3.14
|
|
38
38
|
```
|
|
39
39
|
|
|
40
40
|
You can see which local CI checks it defines by running
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: tensorwaves
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.19
|
|
4
4
|
Summary: Python fitter package for multiple computational back-ends
|
|
5
5
|
Author-email: Common Partial Wave Analysis <compwa-admin@ep1.rub.de>
|
|
6
6
|
Maintainer-email: compwa-admin@ep1.rub.de
|
|
@@ -17,14 +17,13 @@ Classifier: Intended Audience :: Science/Research
|
|
|
17
17
|
Classifier: Natural Language :: English
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.11
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.12
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.13
|
|
24
23
|
Classifier: Topic :: Scientific/Engineering
|
|
25
24
|
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
26
25
|
Classifier: Typing :: Typed
|
|
27
|
-
Requires-Python: >=3.
|
|
26
|
+
Requires-Python: >=3.11
|
|
28
27
|
Description-Content-Type: text/markdown
|
|
29
28
|
License-File: LICENSE
|
|
30
29
|
Requires-Dist: PyYAML>=5.1
|
|
@@ -40,7 +39,7 @@ Requires-Dist: jaxlib; extra == "jax"
|
|
|
40
39
|
Provides-Extra: numba
|
|
41
40
|
Requires-Dist: numba; extra == "numba"
|
|
42
41
|
Provides-Extra: phsp
|
|
43
|
-
Requires-Dist: phasespace[tf]>=1.
|
|
42
|
+
Requires-Dist: phasespace[tf]>=1.11.0; extra == "phsp"
|
|
44
43
|
Requires-Dist: tensorwaves[tf]; extra == "phsp"
|
|
45
44
|
Provides-Extra: pwa
|
|
46
45
|
Requires-Dist: ampform[viz]>=0.12.0; extra == "pwa"
|
|
@@ -63,7 +62,7 @@ Dynamic: license-file
|
|
|
63
62
|
|
|
64
63
|
[](https://mybinder.org/v2/gh/ComPWA/tensorwaves/stable?urlpath=lab)
|
|
65
64
|
[](https://colab.research.google.com/github/ComPWA/tensorwaves/blob/stable)
|
|
66
|
-
[](https://
|
|
65
|
+
[](https://github.dev/ComPWA/tensorwaves)
|
|
67
66
|
|
|
68
67
|
[](https://tensorwaves.readthedocs.io)
|
|
69
68
|
[](https://results.pre-commit.ci/latest/github/ComPWA/tensorwaves/main)
|
|
@@ -75,18 +74,11 @@ Dynamic: license-file
|
|
|
75
74
|
[](https://github.com/astral-sh/uv)
|
|
76
75
|
[](https://github.com/astral-sh/ty)
|
|
77
76
|
|
|
78
|
-
TensorWaves is a fitter package that optimizes mathematical models to data samples. The
|
|
79
|
-
models can be any _symbolic_ mathematical expression that is then converted to any
|
|
80
|
-
computational backend. In addition, TensorWaves provides functionality to generate toy
|
|
81
|
-
Monte Carlo data samples. The package is developed in parallel with
|
|
82
|
-
[AmpForm](https://github.com/ComPWA/ampform), which implements physics models, but its
|
|
83
|
-
'lambdifying' mechanisms can in principle be used independently.
|
|
77
|
+
TensorWaves is a fitter package that optimizes mathematical models to data samples. The models can be any _symbolic_ mathematical expression that is then converted to any computational backend. In addition, TensorWaves provides functionality to generate toy Monte Carlo data samples. The package is developed in parallel with [AmpForm](https://github.com/ComPWA/ampform), which implements physics models, but its 'lambdifying' mechanisms can in principle be used independently.
|
|
84
78
|
|
|
85
|
-
All documentation can be found on
|
|
86
|
-
[tensorwaves.rtfd.io](https://tensorwaves.readthedocs.io).
|
|
79
|
+
All documentation can be found on [tensorwaves.rtfd.io](https://tensorwaves.readthedocs.io).
|
|
87
80
|
|
|
88
|
-
For an overview of **upcoming releases and planned functionality**, see
|
|
89
|
-
[here](https://github.com/ComPWA/tensorwaves/milestones?direction=asc&sort=title&state=open).
|
|
81
|
+
For an overview of **upcoming releases and planned functionality**, see [here](https://github.com/ComPWA/tensorwaves/milestones?direction=asc&sort=title&state=open).
|
|
90
82
|
|
|
91
83
|
## Contribute
|
|
92
84
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
[](https://mybinder.org/v2/gh/ComPWA/tensorwaves/stable?urlpath=lab)
|
|
11
11
|
[](https://colab.research.google.com/github/ComPWA/tensorwaves/blob/stable)
|
|
12
|
-
[](https://
|
|
12
|
+
[](https://github.dev/ComPWA/tensorwaves)
|
|
13
13
|
|
|
14
14
|
[](https://tensorwaves.readthedocs.io)
|
|
15
15
|
[](https://results.pre-commit.ci/latest/github/ComPWA/tensorwaves/main)
|
|
@@ -21,18 +21,11 @@
|
|
|
21
21
|
[](https://github.com/astral-sh/uv)
|
|
22
22
|
[](https://github.com/astral-sh/ty)
|
|
23
23
|
|
|
24
|
-
TensorWaves is a fitter package that optimizes mathematical models to data samples. The
|
|
25
|
-
models can be any _symbolic_ mathematical expression that is then converted to any
|
|
26
|
-
computational backend. In addition, TensorWaves provides functionality to generate toy
|
|
27
|
-
Monte Carlo data samples. The package is developed in parallel with
|
|
28
|
-
[AmpForm](https://github.com/ComPWA/ampform), which implements physics models, but its
|
|
29
|
-
'lambdifying' mechanisms can in principle be used independently.
|
|
24
|
+
TensorWaves is a fitter package that optimizes mathematical models to data samples. The models can be any _symbolic_ mathematical expression that is then converted to any computational backend. In addition, TensorWaves provides functionality to generate toy Monte Carlo data samples. The package is developed in parallel with [AmpForm](https://github.com/ComPWA/ampform), which implements physics models, but its 'lambdifying' mechanisms can in principle be used independently.
|
|
30
25
|
|
|
31
|
-
All documentation can be found on
|
|
32
|
-
[tensorwaves.rtfd.io](https://tensorwaves.readthedocs.io).
|
|
26
|
+
All documentation can be found on [tensorwaves.rtfd.io](https://tensorwaves.readthedocs.io).
|
|
33
27
|
|
|
34
|
-
For an overview of **upcoming releases and planned functionality**, see
|
|
35
|
-
[here](https://github.com/ComPWA/tensorwaves/milestones?direction=asc&sort=title&state=open).
|
|
28
|
+
For an overview of **upcoming releases and planned functionality**, see [here](https://github.com/ComPWA/tensorwaves/milestones?direction=asc&sort=title&state=open).
|
|
36
29
|
|
|
37
30
|
## Contribute
|
|
38
31
|
|
|
@@ -123,6 +123,17 @@ def fit(
|
|
|
123
123
|
return optimizer.optimize(estimator, initial_parameters)
|
|
124
124
|
|
|
125
125
|
|
|
126
|
+
@pytest.fixture(scope="session")
|
|
127
|
+
def model() -> HelicityModel:
|
|
128
|
+
return formulate_amplitude_model(
|
|
129
|
+
formalism="canonical-helicity",
|
|
130
|
+
initial_state=("J/psi(1S)", [-1, +1]),
|
|
131
|
+
final_state=["gamma", "pi0", "pi0"],
|
|
132
|
+
intermediate_states=["f(0)(500)", "f(0)(980)"],
|
|
133
|
+
interaction_types=["EM", "strong"],
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
126
137
|
class TestJPsiToGammaPiPi:
|
|
127
138
|
expected_data = {
|
|
128
139
|
"p0": [
|
|
@@ -148,16 +159,6 @@ class TestJPsiToGammaPiPi:
|
|
|
148
159
|
],
|
|
149
160
|
}
|
|
150
161
|
|
|
151
|
-
@pytest.fixture(scope="session")
|
|
152
|
-
def model(self) -> HelicityModel:
|
|
153
|
-
return formulate_amplitude_model(
|
|
154
|
-
formalism="canonical-helicity",
|
|
155
|
-
initial_state=("J/psi(1S)", [-1, +1]),
|
|
156
|
-
final_state=["gamma", "pi0", "pi0"],
|
|
157
|
-
intermediate_states=["f(0)(500)", "f(0)(980)"],
|
|
158
|
-
interaction_types=["EM", "strong"],
|
|
159
|
-
)
|
|
160
|
-
|
|
161
162
|
@pytest.mark.benchmark(group="data", min_rounds=1)
|
|
162
163
|
@pytest.mark.parametrize("backend", ["jax", "numpy", "tf"])
|
|
163
164
|
@pytest.mark.parametrize("size", [10_000])
|
|
@@ -42,7 +42,7 @@ def _create_data(backend: Backend):
|
|
|
42
42
|
|
|
43
43
|
return {"x": jnp.linspace(0, 10, num=1_000_000).block_until_ready()}
|
|
44
44
|
|
|
45
|
-
import tensorflow.experimental.numpy as tnp # ty: ignore[
|
|
45
|
+
import tensorflow.experimental.numpy as tnp # ty: ignore[import-not-found]
|
|
46
46
|
|
|
47
47
|
return {"x": tnp.linspace(0, 10, num=1_000_000)}
|
|
48
48
|
|
|
@@ -64,6 +64,6 @@ def _assert_precision(
|
|
|
64
64
|
|
|
65
65
|
assert jax.config.x64_enabled == (precision == "float64")
|
|
66
66
|
else:
|
|
67
|
-
import tensorflow.experimental.numpy as tnp # ty: ignore[
|
|
67
|
+
import tensorflow.experimental.numpy as tnp # ty: ignore[import-not-found]
|
|
68
68
|
|
|
69
69
|
assert tnp.asarray(1.0).dtype.name == precision
|