Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extract DynamicsSelector class #240

Merged
merged 9 commits into from
Feb 23, 2022
Merged

feat: extract DynamicsSelector class #240

merged 9 commits into from
Feb 23, 2022

Conversation

redeboer
Copy link
Member

HelicityAmplitudeBuilder.__dynamics_choices has been extracted to a new DynamicsSelector class. This reduces the responsibilities of the HelicityAmplitudeBuilder and makes it easier to implement new implementations for selection of dynamics.

Something similar has been done for 'collector' attributes like HelicityAmplitudeBuilder.__parameter_defaults and __components. This will be useful when implementing TR-014, which will require keeping track of amplitude definitions.

Note: once QRules v0.10 is out, ComPWA/qrules#156 and ComPWA/qrules#157 make it possible to define the dynamics choices as a mapping over topologies and visualize them as graphviz.

@redeboer redeboer added 🔨 Maintenance Maintenance and upkeep improvements 💡 Feature labels Feb 23, 2022
@redeboer redeboer added this to the 0.12.4 milestone Feb 23, 2022
@redeboer redeboer self-assigned this Feb 23, 2022
@redeboer redeboer merged commit d4dc9b2 into main Feb 23, 2022
@redeboer redeboer deleted the DynamicsSelector branch February 23, 2022 13:04
redeboer added a commit that referenced this pull request Feb 23, 2022
* build: install singledispatchmethod
* 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>
redeboer added a commit that referenced this pull request Feb 23, 2022
* build: install singledispatchmethod
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 Maintenance Maintenance and upkeep improvements
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants