Skip to content

Commit

Permalink
feat: extract DynamicsSelector class (#240)
Browse files Browse the repository at this point in the history
* build: install singledispatchmethod b
* ci: deactivate fail-fast for unit testselow Python 3.8
* ci: test ampform with QRules v0.9.7
* docs: hide `__getitem__()` methods from API by default
* docs: hide dict methods from API
* feat: allow assigning dynamics by Particle instance
* refactor: extract _HelicityModelIngredients class

Co-authored-by: GitHub <noreply@github.com>
  • Loading branch information
redeboer and web-flow authored Feb 23, 2022
1 parent 7656576 commit d4dc9b2
Show file tree
Hide file tree
Showing 12 changed files with 203 additions and 64 deletions.
8 changes: 4 additions & 4 deletions .constraints/py3.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ gprof2dot==2021.2.21
graphviz==0.19.1
greenlet==1.1.2
hepunits==2.2.0
identify==2.4.10
identify==2.4.11
idna==3.3
imagesize==1.3.0
importlib-metadata==4.11.1
Expand All @@ -74,7 +74,7 @@ jupyter-cache==0.4.3
jupyter-client==7.1.2
jupyter-core==4.9.2
jupyter-server==1.13.5
jupyter-server-mathjax==0.2.4
jupyter-server-mathjax==0.2.5
jupyter-sphinx==0.3.2
jupyterlab==3.2.9
jupyterlab-code-formatter==1.4.10
Expand Down Expand Up @@ -152,7 +152,7 @@ python-dateutil==2.8.2
pytz==2021.3
pyyaml==6.0
pyzmq==22.3.0
qrules==0.9.6
qrules==0.9.7
radon==5.1.0
requests==2.27.1
restructuredtext-lint==1.3.2
Expand Down Expand Up @@ -193,7 +193,7 @@ tqdm==4.62.3
traitlets==5.1.1
types-docutils==0.17.6
types-pkg-resources==0.1.3
types-requests==2.27.10
types-requests==2.27.11
types-setuptools==57.4.9
types-urllib3==1.26.9
typing-extensions==4.1.1
Expand Down
5 changes: 3 additions & 2 deletions .constraints/py3.6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,12 +148,13 @@ python-dateutil==2.8.2
pytz==2021.3
pyyaml==6.0
pyzmq==22.3.0
qrules==0.9.6
qrules==0.9.7
radon==5.1.0
requests==2.27.1
restructuredtext-lint==1.3.2
rich==11.2.0
send2trash==1.8.0
singledispatchmethod==1.0 ; python_version < "3.8.0"
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
Expand Down Expand Up @@ -189,7 +190,7 @@ traitlets==4.3.3
typed-ast==1.5.2
types-docutils==0.17.6
types-pkg-resources==0.1.3
types-requests==2.27.10
types-requests==2.27.11
types-setuptools==57.4.9
types-urllib3==1.26.9
typing-extensions==4.1.1 ; python_version < "3.8.0"
Expand Down
9 changes: 5 additions & 4 deletions .constraints/py3.7.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ gprof2dot==2021.2.21
graphviz==0.19.1
greenlet==1.1.2
hepunits==2.2.0
identify==2.4.10
identify==2.4.11
idna==3.3
imagesize==1.3.0
importlib-metadata==4.2.0
Expand All @@ -72,7 +72,7 @@ jupyter-cache==0.4.3
jupyter-client==7.1.2
jupyter-core==4.9.2
jupyter-server==1.13.5
jupyter-server-mathjax==0.2.4
jupyter-server-mathjax==0.2.5
jupyter-sphinx==0.3.2
jupyterlab==3.2.9
jupyterlab-code-formatter==1.4.10
Expand Down Expand Up @@ -149,12 +149,13 @@ python-dateutil==2.8.2
pytz==2021.3
pyyaml==6.0
pyzmq==22.3.0
qrules==0.9.6
qrules==0.9.7
radon==5.1.0
requests==2.27.1
restructuredtext-lint==1.3.2
rich==11.2.0
send2trash==1.8.0
singledispatchmethod==1.0 ; python_version < "3.8.0"
six==1.16.0
smmap==5.0.0
sniffio==1.2.0
Expand Down Expand Up @@ -190,7 +191,7 @@ traitlets==5.1.1
typed-ast==1.5.2
types-docutils==0.17.6
types-pkg-resources==0.1.3
types-requests==2.27.10
types-requests==2.27.11
types-setuptools==57.4.9
types-urllib3==1.26.9
typing-extensions==4.1.1 ; python_version < "3.8.0"
Expand Down
8 changes: 4 additions & 4 deletions .constraints/py3.8.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ gprof2dot==2021.2.21
graphviz==0.19.1
greenlet==1.1.2
hepunits==2.2.0
identify==2.4.10
identify==2.4.11
idna==3.3
imagesize==1.3.0
importlib-metadata==4.11.1
Expand All @@ -75,7 +75,7 @@ jupyter-cache==0.4.3
jupyter-client==7.1.2
jupyter-core==4.9.2
jupyter-server==1.13.5
jupyter-server-mathjax==0.2.4
jupyter-server-mathjax==0.2.5
jupyter-sphinx==0.3.2
jupyterlab==3.2.9
jupyterlab-code-formatter==1.4.10
Expand Down Expand Up @@ -153,7 +153,7 @@ python-dateutil==2.8.2
pytz==2021.3
pyyaml==6.0
pyzmq==22.3.0
qrules==0.9.6
qrules==0.9.7
radon==5.1.0
requests==2.27.1
restructuredtext-lint==1.3.2
Expand Down Expand Up @@ -194,7 +194,7 @@ tqdm==4.62.3
traitlets==5.1.1
types-docutils==0.17.6
types-pkg-resources==0.1.3
types-requests==2.27.10
types-requests==2.27.11
types-setuptools==57.4.9
types-urllib3==1.26.9
typing-extensions==4.1.1
Expand Down
8 changes: 4 additions & 4 deletions .constraints/py3.9.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ gprof2dot==2021.2.21
graphviz==0.19.1
greenlet==1.1.2
hepunits==2.2.0
identify==2.4.10
identify==2.4.11
idna==3.3
imagesize==1.3.0
importlib-metadata==4.11.1
Expand All @@ -74,7 +74,7 @@ jupyter-cache==0.4.3
jupyter-client==7.1.2
jupyter-core==4.9.2
jupyter-server==1.13.5
jupyter-server-mathjax==0.2.4
jupyter-server-mathjax==0.2.5
jupyter-sphinx==0.3.2
jupyterlab==3.2.9
jupyterlab-code-formatter==1.4.10
Expand Down Expand Up @@ -152,7 +152,7 @@ python-dateutil==2.8.2
pytz==2021.3
pyyaml==6.0
pyzmq==22.3.0
qrules==0.9.6
qrules==0.9.7
radon==5.1.0
requests==2.27.1
restructuredtext-lint==1.3.2
Expand Down Expand Up @@ -193,7 +193,7 @@ tqdm==4.62.3
traitlets==5.1.1
types-docutils==0.17.6
types-pkg-resources==0.1.3
types-requests==2.27.10
types-requests==2.27.11
types-setuptools==57.4.9
types-urllib3==1.26.9
typing-extensions==4.1.1
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
name: Unit tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-11
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ repos:
- id: pydocstyle

- repo: https://github.com/ComPWA/mirrors-pyright
rev: v1.1.222
rev: v1.1.223
hooks:
- id: pyright

Expand Down
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ def fetch_logo(url: str, output_path: str) -> None:
"evaluate",
"is_commutative",
"is_extended_real",
"items",
"keys",
"precedence",
"values",
]
),
"members": True,
Expand All @@ -154,7 +157,6 @@ def fetch_logo(url: str, output_path: str) -> None:
"special-members": ", ".join(
[
"__call__",
"__getitem__",
]
),
}
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ setup_requires =
install_requires =
attrs >=20.1.0 # on_setattr and https://www.attrs.org/en/stable/api.html#next-gen
qrules ==0.9.*
singledispatchmethod; python_version <"3.8.0"
sympy >=1.8 # module sympy.printing.numpy
typing-extensions; python_version <"3.8.0"
packages = find:
Expand Down
Loading

0 comments on commit d4dc9b2

Please sign in to comment.