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: inspect quantum number solutions #168

Merged
merged 15 commits into from
Apr 1, 2023

Conversation

redeboer
Copy link
Member

The StateTransitionManager.find_solutions() method internally consists of a few steps:

  1. convert ProblemSets to QNProblemSetss (basically Particle with spin projection to a dict)
  2. call internal _solve() method, which constructs a CSPSolver
  3. convert the result back to Particle instances by matching the found quantum number sets with Particle definitions in the STM's particle database.
  4. bundling the resulting execution info and/or found particle transitions as a ReactionInfo object and returning it.

This is quite a lot of responsibility and makes it hard to debug a problem like #165. This PR splits up the find_solutions() method and extends the io._dot module so that it can visualize the quantum number sets before finding the matching Particle definitions.

@redeboer redeboer added the ✨ Feature New feature added to the package label Mar 31, 2022
@redeboer redeboer self-assigned this Mar 31, 2022
@redeboer redeboer added this to the 0.10.0 milestone Mar 31, 2022
@redeboer redeboer force-pushed the visualize-quantum-number-solutions branch from bc7a938 to 104d7aa Compare April 4, 2022 09:10
@redeboer redeboer force-pushed the visualize-quantum-number-solutions branch from 104d7aa to 5f245c4 Compare April 18, 2022 12:14
@redeboer redeboer force-pushed the visualize-quantum-number-solutions branch from 5f245c4 to bb84107 Compare August 4, 2022 10:26
@redeboer redeboer changed the title feat: inspect quantum number solutions FEAT: inspect quantum number solutions Oct 6, 2022
@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 April 1, 2023 18:04
@redeboer redeboer enabled auto-merge (squash) April 1, 2023 18:06
@redeboer redeboer merged commit 9056ef0 into ComPWA:main Apr 1, 2023
@redeboer redeboer deleted the visualize-quantum-number-solutions branch April 1, 2023 18:09
@redeboer redeboer modified the milestones: 0.10.0, 0.9.8 Apr 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ Feature New feature added to the package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant