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

refactor: adapt implementation to AmpForm v0.12.x #345

Merged
merged 23 commits into from
Dec 6, 2021
Merged

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Nov 15, 2021

Adapts the data module implementation so that it can work with AmpForm v0.12.x. Closes ComPWA/ampform#182.

Some major changes:

  • Keys in a DataSample are now str only, not int. This means that momentum samples have keys "p0", "p1", etc. instead of 0, 1. This is in accordance with the Symbol names used in AmpForm's HelicityModel.kinematic_variables.
  • Added a function create_function() that creates a PositionalArgumentFunction. This is a Function without parameters (compare ParametrizedFunction). The function and related class is used in the DataTransformer implementation, which doesn't need parameters.
  • Data conversion can now be done with different back-ends.

@redeboer redeboer added the 🔨 Maintenance Maintenance and upkeep improvements label Nov 15, 2021
@redeboer redeboer added this to the 0.4.0 milestone Nov 15, 2021
@redeboer redeboer self-assigned this Nov 15, 2021
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@redeboer redeboer marked this pull request as ready for review December 5, 2021 21:08
@redeboer
Copy link
Member Author

redeboer commented Dec 6, 2021

95fa4c5 (#374) indeed seems to fix #345 (comment) 🎉

@redeboer redeboer enabled auto-merge (squash) December 6, 2021 12:56
@redeboer redeboer merged commit b7a4efd into main Dec 6, 2021
@redeboer redeboer deleted the ampform-v0.12 branch December 6, 2021 12:57
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
None yet
Development

Successfully merging this pull request may close these issues.

Release plan AmpForm v0.12
2 participants