-
Notifications
You must be signed in to change notification settings - Fork 5
ENH: use Fraction
for spin values
#288
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
Merged
Merged
Changes from 6 commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
ec1c54e
changed Spin to have Fraction-fields
grayson-helmholz c4c2504
floats in Spin substituted with Fractions, regex-tests fail
grayson-helmholz 3dc40d0
fixed regex-patterns in test_particle -> tests pass
grayson-helmholz 3a54c4e
substituted global namespace variable with function
grayson-helmholz 80807e9
fixed typo
grayson-helmholz afc647b
Merge remote-tracking branch 'origin/main' into spin_as_fraction
grayson-helmholz a1d48fa
added rendering for fractions
grayson-helmholz 1957f5b
suppressed warnings in io & tests
grayson-helmholz 64d009c
Union-type for _Spin
grayson-helmholz 1eb80b5
Merge branch 'main' of github.com:CompWA/qrules into spin_as_fraction
grayson-helmholz 6bbf7c0
changed conservation_rules and `arange` to use `Fraction` only
grayson-helmholz e8a184a
`Particle.spin` is now of type `Fraction`
grayson-helmholz 13d11b9
changed aux-types and literals to `Fraction`
grayson-helmholz 2da9bd9
`settings.py` only with `Fraction`
grayson-helmholz 4ffd1e3
added `Fraction` to `Scalar`-type-union
grayson-helmholz a4bcc95
`InteractionProperties` with `Fraction` and new converter
grayson-helmholz a6ab1f8
coercion to `Fraction` in `create_edge_properties`
grayson-helmholz a365f9b
`Fraction`-literal in `StateTransitionManager`-constructor
grayson-helmholz 5312754
`Fraction`-literals in `__init__.py`
grayson-helmholz eefb777
coercion instead of forcing `Fraction`-type in `__init__.py`
grayson-helmholz 6bf5c76
coercion instead of forcing `Fraction`-type in `StateTransitionManager`
grayson-helmholz 31099ad
float allowed again in `create_edge_properties`
grayson-helmholz 28e5ca2
float allowed again in `create_interaction_settings`
grayson-helmholz 274284b
map `Fraction` to input-list
grayson-helmholz 881689f
now preserves stm-API, explicit coercion in `test_settings`-arguments
grayson-helmholz 2bfb50f
reworked rendering fractions
grayson-helmholz 372a11a
changed `parity_prefactor` to float
grayson-helmholz f78b232
introduced `StateDefinitionInput` and converter to `StateDefinition`
grayson-helmholz 9489372
retyped `generate_transitions` and STM-`__init__`
grayson-helmholz 36729d0
renders parity as `int`
grayson-helmholz 315bda6
input-conversion to `Fraction` and new rendering in tests
grayson-helmholz b911392
docstring for `StateDefinitionInput`
grayson-helmholz 9ac8b3a
using `Sequence` in `permutate_topology_kinematically`
grayson-helmholz 24578d1
ignoring `Fraction` in API-Docs
grayson-helmholz 7aca88c
Merge branch 'main' into spin_as_fraction
grayson-helmholz 3e5ed8c
FIX: relink to `fractions.Fraction`
redeboer c9ad862
MAINT: simplify `Fraction` construction and notation
redeboer 7b4732d
refactored `_render_fraction`
grayson-helmholz b46d0d9
fixed type in `conf.py`
grayson-helmholz 5536aa8
removed `Fraction` from user-facing functions/classes
grayson-helmholz 321f9f3
format in regex-pattern
grayson-helmholz e94531e
`isospin` can now be given as `float`, uses converter
grayson-helmholz d691695
`test_settings` uses `float` again as input
grayson-helmholz e8dc2a2
destructuring in `as_state_definition`
grayson-helmholz 90537d9
fused `_int_as_signed_str` and `_float_as_signed_str`
grayson-helmholz c061be1
removed redundancies in `__render_as_fraction`
grayson-helmholz 3e2ba1a
removed `__render_as_fraction` altogether
grayson-helmholz 1d1e7e0
Merge branch 'spin_as_fraction' of github.com:CompWA/qrules into spin…
grayson-helmholz 6333441
rendering `Fraction`s now uses simpler implementation from `particle.py`
grayson-helmholz 33e9009
MAINT: use `attrs` instead of `attr`
redeboer d0c10b9
MAINT: simplify implementation
redeboer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.