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!: wrap dynamics in Expr classes #115

Merged
merged 12 commits into from
Aug 5, 2021
Merged

refactor!: wrap dynamics in Expr classes #115

merged 12 commits into from
Aug 5, 2021

Conversation

redeboer
Copy link
Member

@redeboer redeboer commented Aug 5, 2021

Inspired by ComPWA/compwa.github.io#37 and ComPWA/compwa.github.io#43, which required to re-define coupled width and other dynamics in terms of a class to make them render nicely, all expression nodes of dynamics functions are formulated in terms of sympy.Expr classes. This has been made possible with #114.

Note some major interface changes:

  • coupled_width -> CoupledWidth
  • breakup_momentum_squared -> BreakupMomentumSquared
  • phase_space_factor -> PhaseSpaceFactor
    (for this, the PhaseSpaceFactor had to be renamed to PhaseSpaceFactorProtocol)
  • etc...

The breakup_momentum function has been removed.

@redeboer redeboer added the ⚠️ Interface Breaking changes to the API label Aug 5, 2021
@redeboer redeboer added this to the 0.10.5 milestone Aug 5, 2021
@redeboer redeboer self-assigned this Aug 5, 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 enabled auto-merge (squash) August 5, 2021 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️ Interface Breaking changes to the API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant