Skip to content
This repository was archived by the owner on Oct 11, 2021. It is now read-only.

refactor!: move particle module to reaction#551

Merged
redeboer merged 2 commits intomasterfrom
move-particle
Mar 29, 2021
Merged

refactor!: move particle module to reaction#551
redeboer merged 2 commits intomasterfrom
move-particle

Conversation

@redeboer
Copy link
Copy Markdown
Member

The particle module was originally under a separate module, because it could theoretically operate on its own. However, since its main classes Particle, ParticleCollection and Spin merely serve as user interfaces to the reaction module, it's better to move it back into the reaction module.

This PR also enables #372, which was currently not possible due to cyclic imports.

@redeboer redeboer added the ⚠️ Interface Changes to the interface label Mar 29, 2021
@redeboer redeboer added this to the Release 0.8.0 milestone Mar 29, 2021
@redeboer redeboer requested a review from spflueger March 29, 2021 14:40
@redeboer redeboer self-assigned this Mar 29, 2021
@redeboer
Copy link
Copy Markdown
Member Author

expertsystem 0.7.2 should be released first, because this is a major change to the interface.

In addition, note that at this stage it starts to make more sense to split the expertsystem into some pwa-reaction and pwa-amplitude package. This can be easily done now that io only operates on classes from the reaction module.

@codecov
Copy link
Copy Markdown

codecov bot commented Mar 29, 2021

Codecov Report

Merging #551 (2d954cc) into master (f21f974) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #551   +/-   ##
=======================================
  Coverage   86.33%   86.33%           
=======================================
  Files          22       22           
  Lines        3636     3636           
  Branches      885      885           
=======================================
  Hits         3139     3139           
  Misses        320      320           
  Partials      177      177           
Flag Coverage Δ
unittests 86.33% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/expertsystem/reaction/particle.py 93.92% <ø> (ø)
src/expertsystem/__init__.py 100.00% <100.00%> (ø)
src/expertsystem/amplitude/_graph_info.py 81.96% <100.00%> (ø)
src/expertsystem/amplitude/dynamics/builder.py 46.42% <100.00%> (ø)
src/expertsystem/amplitude/helicity.py 86.29% <100.00%> (ø)
src/expertsystem/amplitude/kinematics.py 84.21% <100.00%> (ø)
src/expertsystem/io/__init__.py 88.09% <100.00%> (ø)
src/expertsystem/io/_dict.py 91.76% <100.00%> (ø)
src/expertsystem/io/_dot.py 75.88% <100.00%> (ø)
src/expertsystem/reaction/__init__.py 83.05% <100.00%> (ø)
... and 5 more

@redeboer redeboer merged commit e7fc5ab into master Mar 29, 2021
@redeboer redeboer deleted the move-particle branch March 29, 2021 15:01
@redeboer redeboer modified the milestones: Release 0.8.0, 0.7.3 Apr 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

⚠️ Interface Changes to the interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants