-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
- Loading branch information
1 parent
e21f8cd
commit 8050391
Showing
5 changed files
with
206 additions
and
166 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
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
[build-system] | ||
requires = [ | ||
"setuptools>=36.2.1", # environment markers | ||
"setuptools>=61.2", | ||
"setuptools_scm", | ||
"wheel", | ||
] | ||
build-backend = "setuptools.build_meta" | ||
|
||
[tool.setuptools_scm] | ||
write_to = "src/tensorwaves/version.py" | ||
|
@@ -249,3 +249,197 @@ task-tags = ["cspell"] | |
|
||
[tool.ruff.pydocstyle] | ||
convention = "google" | ||
|
||
[tool.tomlsort] | ||
all = false | ||
ignore_case = true | ||
in_place = true | ||
sort_first = [ | ||
"build-system", | ||
"project", | ||
"tool.setuptools", | ||
"tool.setuptools_scm", | ||
] | ||
sort_table_keys = true | ||
spaces_indent_inline_array = 4 | ||
trailing_comma_inline_array = true | ||
|
||
[tool.setuptools] | ||
package-dir = {"" = "src"} | ||
include-package-data = false | ||
|
||
[tool.setuptools.packages.find] | ||
where = ["src"] | ||
namespaces = false | ||
|
||
[tool.setuptools.package-data] | ||
tensorwaves = ["py.typed"] | ||
|
||
[project] | ||
name = "tensorwaves" | ||
description = "Python fitter package for multiple computational back-ends" | ||
authors = [{name = "Common Partial Wave Analysis", email = "[email protected]"}] | ||
maintainers = [{email = "[email protected]"}] | ||
license = {text = "GPLv3 or later"} | ||
keywords = [ | ||
"HEP", | ||
"PWA", | ||
"amplitude analysis", | ||
"partial wave analysis", | ||
"particle physics", | ||
"physics", | ||
"tensorflow", | ||
] | ||
classifiers = [ | ||
"Development Status :: 4 - Beta", | ||
"Intended Audience :: Developers", | ||
"Intended Audience :: Education", | ||
"Intended Audience :: Science/Research", | ||
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", | ||
"Natural Language :: English", | ||
"Operating System :: OS Independent", | ||
"Programming Language :: Python", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
"Programming Language :: Python :: 3.9", | ||
"Programming Language :: Python :: 3.10", | ||
"Programming Language :: Python :: 3.11", | ||
"Topic :: Scientific/Engineering", | ||
"Topic :: Scientific/Engineering :: Physics", | ||
"Typing :: Typed", | ||
] | ||
requires-python = ">=3.7" | ||
dependencies = [ | ||
"attrs >=20.1.0", # https://www.attrs.org/en/stable/api.html#next-gen | ||
"iminuit >=2.0", | ||
"numpy", | ||
"PyYAML >=5.1", # https://stackoverflow.com/a/55171433 | ||
"sympy >=1.9", # lambdify cse | ||
"tqdm >=4.24.0", # autonotebook | ||
] | ||
dynamic = ["version"] | ||
|
||
[project.readme] | ||
file = "README.md" | ||
content-type = "text/markdown" | ||
|
||
[project.urls] | ||
Tracker = "https://github.com/ComPWA/tensorwaves/issues" | ||
Changelog = "https://github.com/ComPWA/tensorwaves/releases" | ||
Documentation = "https://tensorwaves.rtfd.io" | ||
Source = "https://github.com/ComPWA/tensorwaves" | ||
|
||
[project.optional-dependencies] | ||
jax = [ | ||
"jax", | ||
"jaxlib", | ||
] | ||
numba = [ | ||
"numba", | ||
] | ||
tf = [ | ||
"tensorflow >=2.4", # tensorflow.experimental.numpy | ||
] | ||
tensorflow = [ | ||
"tensorwaves[tf]", | ||
] | ||
phsp = [ | ||
"tensorwaves[tensorflow]", | ||
"phasespace[tf] >=1.7.0", | ||
'phasespace <1.9.0; python_version <"3.8.0"', | ||
] | ||
phasespace = [ | ||
"tensorwaves[phsp]", | ||
] | ||
pwa = [ | ||
"tensorwaves[phsp]", | ||
"ampform >=0.12.0", # https://github.com/ComPWA/ampform/pull/177 | ||
] | ||
scipy = [ | ||
"scipy >=1", | ||
] | ||
viz = [ | ||
"graphviz", | ||
] | ||
all = [ | ||
"tensorwaves[jax]", | ||
"tensorwaves[numba]", | ||
"tensorwaves[pwa]", | ||
"tensorwaves[scipy]", | ||
"tensorwaves[tensorflow]", | ||
"tensorwaves[viz]", | ||
] | ||
doc = [ | ||
"tensorwaves[all]", | ||
'importlib-metadata; python_version <"3.8.0"', | ||
"ipympl", | ||
"jupyter", | ||
"matplotlib", | ||
"myst-nb >=0.14", # nb_ configuration prefixes | ||
"nbclient >=0.5.5", # https://github.com/executablebooks/jupyter-book/issues/833 | ||
"pandas", | ||
"Sphinx >=3", | ||
"sphinx-book-theme", | ||
"sphinx-codeautolink[ipython]", | ||
"sphinx-comments", | ||
"sphinx-copybutton", | ||
"sphinx-design", | ||
"sphinx-thebe", | ||
"sphinx-togglebutton", | ||
"sphobjinv", | ||
] | ||
test-types = [ | ||
"ipython", # test _repr_pretty_ | ||
"pytest", | ||
"pytest-mock >=3.3.0", | ||
] | ||
test = [ | ||
"tensorwaves[test-types]", | ||
"ampform >=0.13", # https://github.com/ComPWA/ampform/issues/208 | ||
"nbmake", | ||
'nbmake <1.3; python_version <"3.8.0"', | ||
"pytest-benchmark", | ||
"pytest-cov", | ||
"pytest-xdist", | ||
] | ||
format = [ | ||
"black", | ||
] | ||
mypy = [ | ||
"tensorwaves[jax]", | ||
"tensorwaves[pwa]", | ||
"tensorwaves[test-types]", | ||
"mypy >=0.570", # attrs support | ||
"types-docutils", | ||
"types-pkg-resources", | ||
"types-PyYAML", | ||
"types-requests", | ||
"types-setuptools", | ||
] | ||
lint = [ | ||
"tensorwaves[mypy]", | ||
"ruff", | ||
] | ||
sty = [ | ||
"tensorwaves[format]", | ||
"tensorwaves[lint]", | ||
"pre-commit >=1.4.0", | ||
] | ||
jupyter = [ | ||
"tensorwaves[doc]", | ||
"jupyterlab", | ||
"jupyterlab-code-formatter", | ||
"jupyterlab-lsp", | ||
"jupyterlab-myst", | ||
"python-lsp-server[rope]", | ||
'ypy-websocket <0.8.3; python_version <"3.8.0"', | ||
] | ||
dev = [ | ||
"tensorwaves[all]", | ||
"tensorwaves[doc]", | ||
"tensorwaves[jupyter]", | ||
"tensorwaves[sty]", | ||
"tensorwaves[test]", | ||
"sphinx-autobuild", | ||
"tox >=1.9", # for skip_install, use_develop | ||
] |
Oops, something went wrong.
8050391
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible performance regression was detected for benchmark 'TensorWaves benchmark results'.
Benchmark result of this commit is worse than the previous benchmark result exceeding threshold
2
.benchmarks/expression.py::test_fit[1000-Minuit2-numpy]
4.6323971180320305
iter/sec (stddev: 0.008110164911019298
)15.091606902802761
iter/sec (stddev: 0.001597165128720511
)3.26
benchmarks/expression.py::test_fit[1000-Minuit2-numba]
4.713991185328787
iter/sec (stddev: 0.0030309479362618944
)15.34321286069892
iter/sec (stddev: 0.00031312238963395535
)3.25
benchmarks/expression.py::test_fit[1000-ScipyMinimizer-numpy]
4.592452902694003
iter/sec (stddev: 0.008111198952257898
)15.246453009664432
iter/sec (stddev: 0.0002718823501960658
)3.32
benchmarks/expression.py::test_fit[1000-ScipyMinimizer-numba]
4.695241530375263
iter/sec (stddev: 0.0011312389056179202
)15.543662382731911
iter/sec (stddev: 0.0009863915622336588
)3.31
This comment was automatically generated by workflow using github-action-benchmark.