tensorwaves 0.4.16__tar.gz → 0.4.18__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.
Files changed (129) hide show
  1. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.cspell.json +26 -3
  2. tensorwaves-0.4.18/.envrc +1 -0
  3. tensorwaves-0.4.18/.gitattributes +1 -0
  4. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/benchmark.yml +5 -5
  5. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/cd.yml +8 -7
  6. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/ci.yml +9 -6
  7. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/clean-caches.yml +1 -1
  8. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/lock.yml +1 -1
  9. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/pr-linting.yml +1 -1
  10. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/redirect-gh-pages.yml +2 -2
  11. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/workflows/release-drafter.yml +1 -1
  12. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.gitignore +10 -1
  13. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.pre-commit-config.yaml +36 -44
  14. tensorwaves-0.4.18/.readthedocs.yml +17 -0
  15. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.vscode/extensions.json +2 -2
  16. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.vscode/settings.json +4 -17
  17. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/CONTRIBUTING.md +5 -5
  18. tensorwaves-0.4.18/PKG-INFO +85 -0
  19. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/README.md +4 -11
  20. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/benchmarks/ampform.py +11 -10
  21. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/benchmarks/expression.py +9 -7
  22. tensorwaves-0.4.18/benchmarks/precision.py +69 -0
  23. tensorwaves-0.4.18/benchmarks/unbinned_nll.py +447 -0
  24. tensorwaves-0.4.18/codecov.yml +7 -0
  25. tensorwaves-0.4.18/docs/_static/mermaid.css +13 -0
  26. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/amplitude-analysis/analytic-continuation.ipynb +13 -17
  27. tensorwaves-0.4.18/docs/amplitude-analysis/phase-space.ipynb +335 -0
  28. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/amplitude-analysis.ipynb +58 -67
  29. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/conf.py +27 -19
  30. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/index.md +3 -8
  31. tensorwaves-0.4.18/docs/install.md +148 -0
  32. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/basics.ipynb +38 -55
  33. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/binned-fit.ipynb +3 -3
  34. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/caching.ipynb +11 -9
  35. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/chi-squared.ipynb +2 -2
  36. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/faster-lambdify.ipynb +6 -9
  37. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage/unbinned-fit.ipynb +4 -4
  38. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/usage.ipynb +15 -30
  39. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/pyproject.toml +329 -275
  40. tensorwaves-0.4.18/src/tensorwaves/__init__.py +31 -0
  41. tensorwaves-0.4.18/src/tensorwaves/config.py +119 -0
  42. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/data/__init__.py +12 -9
  43. tensorwaves-0.4.18/src/tensorwaves/data/phasespace.py +213 -0
  44. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/data/rng.py +7 -6
  45. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/data/transform.py +4 -5
  46. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/estimator.py +72 -58
  47. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/function/__init__.py +6 -2
  48. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/function/_backend.py +23 -19
  49. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/function/sympy/__init__.py +84 -84
  50. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/function/sympy/_printer.py +5 -5
  51. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/interface.py +9 -12
  52. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/optimizer/__init__.py +2 -2
  53. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/optimizer/callbacks.py +28 -28
  54. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/optimizer/minuit.py +11 -12
  55. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/optimizer/scipy.py +6 -4
  56. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/version.py +3 -3
  57. tensorwaves-0.4.18/src/tensorwaves.egg-info/PKG-INFO +85 -0
  58. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves.egg-info/SOURCES.txt +9 -1
  59. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves.egg-info/requires.txt +1 -1
  60. tensorwaves-0.4.18/src/tensorwaves.egg-info/scm_file_list.json +103 -0
  61. tensorwaves-0.4.18/src/tensorwaves.egg-info/scm_version.json +8 -0
  62. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/data/test_data.py +32 -23
  63. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/data/test_phasespace.py +140 -9
  64. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/data/test_rng.py +12 -12
  65. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/data/test_transform.py +12 -12
  66. tensorwaves-0.4.18/tests/function/test_ampform.py +71 -0
  67. tensorwaves-0.4.18/tests/function/test_backend.py +32 -0
  68. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/function/test_function.py +36 -27
  69. tensorwaves-0.4.18/tests/function/test_sympy.py +196 -0
  70. tensorwaves-0.4.18/tests/optimizer/__init__.py +120 -0
  71. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/optimizer/test_callbacks.py +2 -2
  72. tensorwaves-0.4.18/tests/optimizer/test_fit_simple_model.py +226 -0
  73. tensorwaves-0.4.18/tests/optimizer/test_gradient.py +150 -0
  74. tensorwaves-0.4.18/tests/optimizer/test_minuit.py +56 -0
  75. tensorwaves-0.4.18/tests/optimizer/test_parameter.py +51 -0
  76. tensorwaves-0.4.18/tests/optimizer/test_scipy.py +50 -0
  77. tensorwaves-0.4.18/tests/test_config.py +175 -0
  78. tensorwaves-0.4.18/tests/test_estimator.py +271 -0
  79. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/test_interface.py +5 -5
  80. tensorwaves-0.4.18/uv.lock +5892 -0
  81. tensorwaves-0.4.16/.envrc +0 -2
  82. tensorwaves-0.4.16/.readthedocs.yml +0 -19
  83. tensorwaves-0.4.16/.taplo.toml +0 -19
  84. tensorwaves-0.4.16/PKG-INFO +0 -284
  85. tensorwaves-0.4.16/codecov.yml +0 -38
  86. tensorwaves-0.4.16/docs/install.md +0 -160
  87. tensorwaves-0.4.16/src/tensorwaves/__init__.py +0 -29
  88. tensorwaves-0.4.16/src/tensorwaves/data/phasespace.py +0 -142
  89. tensorwaves-0.4.16/src/tensorwaves.egg-info/PKG-INFO +0 -284
  90. tensorwaves-0.4.16/tests/function/test_ampform.py +0 -67
  91. tensorwaves-0.4.16/tests/function/test_backend.py +0 -29
  92. tensorwaves-0.4.16/tests/function/test_sympy.py +0 -191
  93. tensorwaves-0.4.16/tests/optimizer/__init__.py +0 -54
  94. tensorwaves-0.4.16/tests/optimizer/test_fit_simple_model.py +0 -226
  95. tensorwaves-0.4.16/tests/optimizer/test_gradient.py +0 -106
  96. tensorwaves-0.4.16/tests/optimizer/test_minuit.py +0 -112
  97. tensorwaves-0.4.16/tests/optimizer/test_parameter.py +0 -52
  98. tensorwaves-0.4.16/tests/optimizer/test_scipy.py +0 -107
  99. tensorwaves-0.4.16/tests/test_estimator.py +0 -237
  100. tensorwaves-0.4.16/uv.lock +0 -5867
  101. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.binder/apt.txt +0 -0
  102. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.binder/postBuild +0 -0
  103. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.binder/runtime.txt +0 -0
  104. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.editorconfig +0 -0
  105. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/dependabot.yml +0 -0
  106. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.github/release-drafter.yml +0 -0
  107. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.prettierignore +0 -0
  108. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.python-version +0 -0
  109. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/.vscode/launch.json +0 -0
  110. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/CITATION.cff +0 -0
  111. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/LICENSE +0 -0
  112. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/benchmarks/__init__.py +0 -0
  113. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/benchmarks/conftest.py +0 -0
  114. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/.gitignore +0 -0
  115. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/_static/favicon.ico +0 -0
  116. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/_static/linebreaks-api.css +0 -0
  117. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/docs/tensorflow.txt +0 -0
  118. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/setup.cfg +0 -0
  119. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/data/_attrs.py +0 -0
  120. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/data/_data_sample.py +0 -0
  121. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/optimizer/parameter.py +0 -0
  122. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves/py.typed +0 -0
  123. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves.egg-info/dependency_links.txt +0 -0
  124. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/src/tensorwaves.egg-info/top_level.txt +0 -0
  125. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/__init__.py +0 -0
  126. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/conftest.py +0 -0
  127. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/data/__init__.py +0 -0
  128. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/function/__init__.py +0 -0
  129. {tensorwaves-0.4.16 → tensorwaves-0.4.18}/tests/output/.gitignore +0 -0
@@ -1,5 +1,5 @@
1
1
  {
2
- "allowCompoundWords": true,
2
+ "allowCompoundWords": false,
3
3
  "enableFiletypes": [
4
4
  "git-commit",
5
5
  "github-actions-workflow",
@@ -24,12 +24,12 @@
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",
30
31
  ".prettierignore",
31
32
  ".readthedocs.yml",
32
- ".taplo.toml",
33
33
  ".vscode/*",
34
34
  "CITATION.cff",
35
35
  "codecov.yml",
@@ -44,15 +44,19 @@
44
44
  "allclose",
45
45
  "ampform",
46
46
  "arange",
47
- "asdot",
47
+ "argnames",
48
+ "argvalues",
48
49
  "aslatex",
50
+ "asmermaid",
49
51
  "atfi",
52
+ "automethod",
50
53
  "autoupdate",
51
54
  "axhline",
52
55
  "axvline",
53
56
  "bdist",
54
57
  "bgcolor",
55
58
  "cano",
59
+ "caplog",
56
60
  "capsys",
57
61
  "celltoolbar",
58
62
  "classmethod",
@@ -73,14 +77,17 @@
73
77
  "dphi",
74
78
  "dtype",
75
79
  "eqnarray",
80
+ "errordef",
76
81
  "eval",
77
82
  "evalf",
78
83
  "figsize",
79
84
  "filterwarnings",
80
85
  "fmin",
81
86
  "fontsize",
87
+ "forceobj",
82
88
  "fval",
83
89
  "genindex",
90
+ "getfixturevalue",
84
91
  "getsource",
85
92
  "gridspec",
86
93
  "heli",
@@ -89,6 +96,7 @@
89
96
  "iloc",
90
97
  "imag",
91
98
  "iminuit",
99
+ "indentless",
92
100
  "indeterministic",
93
101
  "ioff",
94
102
  "ipykernel",
@@ -110,10 +118,14 @@
110
118
  "logdir",
111
119
  "macos",
112
120
  "mathbf",
121
+ "mathcal",
113
122
  "mathrm",
114
123
  "maxdepth",
124
+ "maxval",
115
125
  "meshgrid",
126
+ "migrad",
116
127
  "mimetype",
128
+ "minval",
117
129
  "modindex",
118
130
  "mprime",
119
131
  "nbconvert",
@@ -125,19 +137,25 @@
125
137
  "ncalls",
126
138
  "ncols",
127
139
  "ndarray",
140
+ "njit",
128
141
  "noqa",
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",
152
+ "prange",
137
153
  "precommit",
138
154
  "prefactor",
155
+ "prek",
139
156
  "preorder",
140
157
  "prereleased",
158
+ "printmethod",
141
159
  "pwa's",
142
160
  "py's",
143
161
  "pygments",
@@ -147,13 +165,16 @@
147
165
  "pytestconfig",
148
166
  "qrules",
149
167
  "rightarrow",
168
+ "rowdict",
150
169
  "rtfd",
151
170
  "rtol",
171
+ "scimath",
152
172
  "scipy",
153
173
  "sdist",
154
174
  "seealso",
155
175
  "sharex",
156
176
  "sharey",
177
+ "sphinxcontrib",
157
178
  "startswith",
158
179
  "staticmethod",
159
180
  "subsys",
@@ -165,6 +186,7 @@
165
186
  "unflattened",
166
187
  "unnormalized",
167
188
  "unsubscriptable",
189
+ "usefixtures",
168
190
  "vstack",
169
191
  "waves's",
170
192
  "wspace",
@@ -240,6 +262,7 @@
240
262
  "vectorize",
241
263
  "venv",
242
264
  "weisskopf",
265
+ "wirtinger",
243
266
  "xcode",
244
267
  "Zenodo",
245
268
  "zfit"
@@ -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@v6
21
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
22
22
  with:
23
23
  fetch-depth: 0
24
- - uses: actions/setup-python@v6
24
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
25
25
  with:
26
26
  python-version: "3.13"
27
- - uses: astral-sh/setup-uv@v7
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-24.04
25
+ runs-on: ubuntu-26.04
26
26
  steps:
27
- - uses: ComPWA/actions/build-pypi-distribution@v4
28
- - uses: pypa/gh-action-pypi-publish@release/v1
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
- secrets: inherit
32
- uses: ComPWA/actions/.github/workflows/push-to-version-branches.yml@v4
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.0
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.0
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.0
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.10"
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 }}
@@ -17,6 +17,6 @@ on:
17
17
 
18
18
  jobs:
19
19
  lock:
20
- uses: ComPWA/actions/.github/workflows/lock.yml@v4
20
+ uses: ComPWA/actions/.github/workflows/lock.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
21
21
  secrets:
22
22
  token: ${{ secrets.PAT }}
@@ -11,4 +11,4 @@ on:
11
11
 
12
12
  jobs:
13
13
  lint-pr:
14
- uses: ComPWA/actions/.github/workflows/pr-linting.yml@v4
14
+ uses: ComPWA/actions/.github/workflows/pr-linting.yml@588d066e5319c158d8ebc23b9699f19b7c68c641 # v4.2.2
@@ -26,7 +26,7 @@ jobs:
26
26
  </body>
27
27
  </html>' > build/index.html
28
28
  - id: deployment
29
- uses: actions/upload-pages-artifact@v4
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
@@ -11,6 +11,6 @@ jobs:
11
11
  update_release_draft:
12
12
  runs-on: ubuntu-slim
13
13
  steps:
14
- - uses: release-drafter/release-drafter@v7
14
+ - uses: release-drafter/release-drafter@d1a19e60e81a7e650d00a7de9277f87e439117ea # v7.11.0
15
15
  env:
16
16
  GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -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__/
@@ -40,6 +41,15 @@ pyvenv*/
40
41
  .idea/
41
42
  **.code-workspace
42
43
 
44
+ # Agent tooling
45
+ .agents/
46
+ .claude/
47
+ .codex/
48
+ .gemini/
49
+ AGENTS.md
50
+ CLAUDE.md
51
+ GEMINI.md
52
+
43
53
  # Exceptions
44
54
  !.cspell.json
45
55
  !.github/*.yml
@@ -47,5 +57,4 @@ pyvenv*/
47
57
  !.pre-commit-config.yaml
48
58
  !.readthedocs.yml
49
59
  !.vscode/*.json
50
- !.zenodo.json
51
60
  !codecov.yml
@@ -4,6 +4,8 @@ ci:
4
4
  autoupdate_schedule: quarterly
5
5
  skip:
6
6
  - check-jsonschema
7
+ - tombi-format
8
+ - tombi-lint
7
9
  - ty
8
10
  - uv-lock
9
11
 
@@ -14,26 +16,12 @@ repos:
14
16
  - id: check-useless-excludes
15
17
 
16
18
  - repo: https://github.com/ComPWA/policy
17
- rev: 0.8.10
19
+ rev: 0.10.9
18
20
  hooks:
19
21
  - id: check-dev-files
20
- args:
21
- - --doc-apt-packages=graphviz
22
- - --excluded-python-versions=3.14
23
- - --pytest-single-threaded
24
- - --repo-name=tensorwaves
25
- - --repo-title=TensorWaves
26
- - --type-checker=ty
27
- - id: colab-toc-visible
28
- - id: fix-nbformat-version
29
- - id: remove-empty-tags
30
- - id: set-nb-cells
31
- args: [--autolink-concat]
32
- - id: set-nb-display-name
33
- - id: strip-nb-whitespace
34
22
 
35
23
  - repo: https://github.com/kynan/nbstripout
36
- rev: 0.9.1
24
+ rev: 0.9.2
37
25
  hooks:
38
26
  - id: nbstripout
39
27
  args:
@@ -60,14 +48,23 @@ repos:
60
48
  metadata.varInspector
61
49
  metadata.vscode
62
50
 
51
+ - repo: https://github.com/ComPWA/nbhooks
52
+ rev: 0.0.2
53
+ hooks:
54
+ - id: colab-toc-visible
55
+ - id: fix-nbformat-version
56
+ - id: remove-empty-tags
57
+ - id: set-nb-cells
58
+ args: [--autolink-concat]
59
+ - id: set-nb-display-name
60
+ - id: strip-nb-whitespace
61
+
63
62
  - repo: https://github.com/astral-sh/ruff-pre-commit
64
- rev: v0.15.12
63
+ rev: v0.17.5
65
64
  hooks:
66
65
  - id: ruff-check
67
66
  args: [--fix]
68
- types_or: [python, pyi, jupyter]
69
67
  - id: ruff-format
70
- types_or: [python, pyi, jupyter]
71
68
 
72
69
  - repo: https://github.com/pre-commit/pre-commit-hooks
73
70
  rev: v6.0.0
@@ -96,25 +93,20 @@ repos:
96
93
  )$
97
94
  - id: trailing-whitespace
98
95
 
99
- - repo: https://github.com/ComPWA/prettier-pre-commit
100
- rev: v3.8.1
96
+ - repo: https://github.com/tombi-toml/tombi-pre-commit
97
+ rev: v1.11.3
101
98
  hooks:
102
- - id: prettier
99
+ - id: tombi-format
100
+ - id: tombi-lint
101
+ args: [--error-on-warnings]
103
102
 
104
- - repo: https://github.com/ComPWA/taplo-pre-commit
105
- rev: v0.9.3
106
- hooks:
107
- - id: taplo-format
108
-
109
- - repo: https://github.com/pappasam/toml-sort
110
- rev: v0.24.4
103
+ - repo: https://github.com/ComPWA/prettier-pre-commit
104
+ rev: v3.10.1
111
105
  hooks:
112
- - id: toml-sort
113
- args:
114
- - --in-place
106
+ - id: prettier
115
107
 
116
108
  - repo: https://github.com/python-jsonschema/check-jsonschema
117
- rev: 0.37.2
109
+ rev: 0.39.0
118
110
  hooks:
119
111
  - id: check-jsonschema
120
112
  name: Check CITATION.cff
@@ -127,13 +119,17 @@ repos:
127
119
  pass_filenames: false
128
120
 
129
121
  - repo: https://github.com/streetsidesoftware/cspell-cli
130
- rev: v10.0.0
122
+ rev: v10.4.1
131
123
  hooks:
132
124
  - id: cspell
133
- language_version: 25.9.0
125
+
126
+ - repo: https://github.com/LilSpazJoekp/docstrfmt
127
+ rev: v2.2.1
128
+ hooks:
129
+ - id: docstrfmt
134
130
 
135
131
  - repo: https://github.com/editorconfig-checker/editorconfig-checker.python
136
- rev: 3.6.1
132
+ rev: 3.11.1
137
133
  hooks:
138
134
  - id: editorconfig-checker
139
135
  name: editorconfig
@@ -143,17 +139,13 @@ repos:
143
139
  .*\.py
144
140
  )$
145
141
 
146
- - repo: local
142
+ - repo: https://github.com/astral-sh/ty-pre-commit
143
+ rev: v0.0.107
147
144
  hooks:
148
145
  - id: ty
149
- name: ty
150
- entry: ty check
151
- args: [--no-progress, --output-format=concise]
152
- require_serial: true
153
- language: system
154
- types_or: [python, pyi, jupyter]
146
+ args: [--group=types, --no-default-groups]
155
147
 
156
148
  - repo: https://github.com/astral-sh/uv-pre-commit
157
- rev: 0.11.13
149
+ rev: 0.13.9
158
150
  hooks:
159
151
  - id: uv-lock
@@ -0,0 +1,17 @@
1
+ version: 2
2
+
3
+ build:
4
+ os: ubuntu-24.04
5
+ tools:
6
+ python: "3.13"
7
+ apt_packages:
8
+ - graphviz
9
+ python:
10
+ install:
11
+ - method: uv
12
+ command: sync
13
+ groups:
14
+ - doc
15
+ sphinx:
16
+ configuration: docs/conf.py
17
+ fail_on_warning: true
@@ -14,12 +14,11 @@
14
14
  "ms-toolsai.jupyter",
15
15
  "ms-toolsai.vscode-jupyter-cell-tags",
16
16
  "ms-vscode.live-server",
17
- "ms-vsliveshare.vsliveshare",
18
17
  "redhat.vscode-yaml",
19
18
  "soulcode.vscode-unwanted-extensions",
20
19
  "stkb.rewrap",
21
20
  "streetsidesoftware.code-spell-checker",
22
- "tamasfe.even-better-toml",
21
+ "tombi-toml.tombi",
23
22
  "yzhang.markdown-all-in-one"
24
23
  ],
25
24
  "unwantedRecommendations": [
@@ -34,6 +33,7 @@
34
33
  "ms-python.vscode-pylance",
35
34
  "ms-toolsai.vscode-jupyter-slideshow",
36
35
  "ryanluker.vscode-coverage-gutters",
36
+ "tamasfe.even-better-toml",
37
37
  "travisillig.vscode-json-stable-stringify",
38
38
  "tyriar.sort-lines"
39
39
  ]
@@ -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]": {
@@ -23,8 +19,8 @@
23
19
  "editor.defaultFormatter": "charliermarsh.ruff",
24
20
  "editor.rulers": [88]
25
21
  },
26
- "[yaml]": {
27
- "editor.defaultFormatter": "esbenp.prettier-vscode"
22
+ "[toml]": {
23
+ "editor.defaultFormatter": "tombi-toml.tombi"
28
24
  },
29
25
  "cSpell.enabled": true,
30
26
  "diffEditor.experimental.showMoves": true,
@@ -37,14 +33,9 @@
37
33
  {
38
34
  "fileMatch": ["*particle*.json"],
39
35
  "url": "https://raw.githubusercontent.com/ComPWA/qrules/0.8.0a1/src/qrules/particle-validation.json"
40
- },
41
- {
42
- "fileMatch": [".zenodo.json"],
43
- "url": "https://zenodo.org/schemas/deposits/records/legacyrecord.json"
44
36
  }
45
37
  ],
46
38
  "livePreview.defaultPreviewPath": "docs/_build/html",
47
- "multiDiffEditor.experimental.enabled": true,
48
39
  "notebook.codeActionsOnSave": {
49
40
  "notebook.source.organizeImports": "explicit"
50
41
  },
@@ -69,9 +60,5 @@
69
60
  "testing.showCoverageInExplorer": true,
70
61
  "ty.completions.autoImport": false,
71
62
  "ty.diagnosticMode": "workspace",
72
- "ty.importStrategy": "fromEnvironment",
73
- "yaml.schemas": {
74
- "https://citation-file-format.github.io/1.2.0/schema.json": "CITATION.cff",
75
- "https://json.schemastore.org/github-workflow.json": "./.github/workflows/requirements.yml"
76
- }
63
+ "ty.importStrategy": "fromEnvironment"
77
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, run install `pre-commit` with `uv`:
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 pre-commit --with pre-commit-uv --force-reinstall --python=3.13
25
+ uv tool install prek --force-reinstall
26
26
  ```
27
27
 
28
- and [`pre-commit install`](https://pre-commit.com/#3-install-the-git-hook-scripts) **once**:
28
+ and run [`prek install`](https://prek.j178.dev/reference/cli/) **once**:
29
29
 
30
30
  ```shell
31
- pre-commit install --install-hooks
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.13
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
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: tensorwaves
3
+ Version: 0.4.18
4
+ Summary: Python fitter package for multiple computational back-ends
5
+ Author-email: Common Partial Wave Analysis <compwa-admin@ep1.rub.de>
6
+ Maintainer-email: compwa-admin@ep1.rub.de
7
+ License-Expression: Apache-2.0
8
+ Project-URL: Changelog, https://github.com/ComPWA/tensorwaves/releases
9
+ Project-URL: Documentation, https://tensorwaves.rtfd.io
10
+ Project-URL: Issues, https://github.com/ComPWA/tensorwaves/issues
11
+ Project-URL: Source, https://github.com/ComPWA/tensorwaves
12
+ Keywords: HEP,PWA,amplitude analysis,partial wave analysis,particle physics,physics,tensorflow
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Intended Audience :: Education
16
+ Classifier: Intended Audience :: Science/Research
17
+ Classifier: Natural Language :: English
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python
20
+ Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Topic :: Scientific/Engineering
24
+ Classifier: Topic :: Scientific/Engineering :: Physics
25
+ Classifier: Typing :: Typed
26
+ Requires-Python: >=3.11
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE
29
+ Requires-Dist: PyYAML>=5.1
30
+ Requires-Dist: attrs>=20.1.0
31
+ Requires-Dist: iminuit>=2.0
32
+ Requires-Dist: numpy
33
+ Requires-Dist: rich
34
+ Requires-Dist: sympy>=1.9
35
+ Requires-Dist: tqdm>=4.24.0
36
+ Provides-Extra: jax
37
+ Requires-Dist: jax; extra == "jax"
38
+ Requires-Dist: jaxlib; extra == "jax"
39
+ Provides-Extra: numba
40
+ Requires-Dist: numba; extra == "numba"
41
+ Provides-Extra: phsp
42
+ Requires-Dist: phasespace[tf]>=1.11.0; extra == "phsp"
43
+ Requires-Dist: tensorwaves[tf]; extra == "phsp"
44
+ Provides-Extra: pwa
45
+ Requires-Dist: ampform[viz]>=0.12.0; extra == "pwa"
46
+ Requires-Dist: tensorwaves[phsp]; extra == "pwa"
47
+ Provides-Extra: scipy
48
+ Requires-Dist: scipy>=1; extra == "scipy"
49
+ Provides-Extra: tf
50
+ Requires-Dist: tensorboard; extra == "tf"
51
+ Requires-Dist: tensorflow>=2.12; extra == "tf"
52
+ Dynamic: license-file
53
+
54
+ # TensorWaves
55
+
56
+ [![10.5281/zenodo.5526650](https://zenodo.org/badge/doi/10.5281/zenodo.5526650.svg)](https://doi.org/10.5281/zenodo.5526650)
57
+ [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
58
+
59
+ [![PyPI package](https://badge.fury.io/py/tensorwaves.svg)](https://pypi.org/project/tensorwaves)
60
+ [![Conda package](https://anaconda.org/conda-forge/tensorwaves/badges/version.svg)](https://anaconda.org/conda-forge/tensorwaves)
61
+ [![Supported Python versions](https://img.shields.io/pypi/pyversions/tensorwaves)](https://pypi.org/project/tensorwaves)
62
+
63
+ [![Binder](https://static.mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/ComPWA/tensorwaves/stable?urlpath=lab)
64
+ [![Google Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/ComPWA/tensorwaves/blob/stable)
65
+ [![Open in Visual Studio Code](https://img.shields.io/badge/vscode-open-blue?logo=visualstudiocode)](https://github.dev/ComPWA/tensorwaves)
66
+
67
+ [![Documentation build status](https://readthedocs.org/projects/tensorwaves/badge/?version=latest)](https://tensorwaves.readthedocs.io)
68
+ [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/ComPWA/tensorwaves/main.svg)](https://results.pre-commit.ci/latest/github/ComPWA/tensorwaves/main)
69
+ [![CI](https://github.com/ComPWA/tensorwaves/actions/workflows/ci.yml/badge.svg)](https://github.com/ComPWA/tensorwaves/actions/workflows/ci.yml)
70
+ [![Test coverage](https://codecov.io/gh/ComPWA/tensorwaves/branch/main/graph/badge.svg)](https://codecov.io/gh/ComPWA/tensorwaves)
71
+ [![Spelling checked](https://img.shields.io/badge/cspell-checked-brightgreen.svg)](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell)
72
+ [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
73
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
74
+ [![uv](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json)](https://github.com/astral-sh/uv)
75
+ [![ty](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ty/main/assets/badge/v0.json)](https://github.com/astral-sh/ty)
76
+
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.
78
+
79
+ All documentation can be found on [tensorwaves.rtfd.io](https://tensorwaves.readthedocs.io).
80
+
81
+ For an overview of **upcoming releases and planned functionality**, see [here](https://github.com/ComPWA/tensorwaves/milestones?direction=asc&sort=title&state=open).
82
+
83
+ ## Contribute
84
+
85
+ See [`CONTRIBUTING.md`](./CONTRIBUTING.md)