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

FIX: fix is_integer() bug for QRules v0.10.4 #450

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

grayson-helmholz
Copy link
Contributor

@grayson-helmholz grayson-helmholz commented Jan 17, 2025

Closes #449

Fixed a bug where the method Fraction.is_integer(), which has only been added Python 3.12, is called when the angular momentum of a particle is not None.

Related issues that this PR addresses:

@grayson-helmholz grayson-helmholz added the 🐛 Bug Something isn't working label Jan 17, 2025
@grayson-helmholz grayson-helmholz self-assigned this Jan 17, 2025
@grayson-helmholz
Copy link
Contributor Author

Apparantly, the _GH-flag in test_cache.py is set to false on Ubuntu/Python3.12 - That would mean that either "CI" is not set as an environment-variable or the Darwin-kernel is actually used.

@redeboer redeboer self-requested a review January 17, 2025 17:32
@redeboer redeboer changed the title FIX: fix is_integer-not-implemented bug for Fraction in Python < 3.12 FIX: fix is_integer() bug for QRules v0.10.4 Jan 17, 2025
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test can be removed. The tests did catch the problem after ComPWA/actions#124 was fixed. See
https://github.com/ComPWA/ampform/actions/runs/12827104659/job/35770967572

@redeboer redeboer added this to the 0.15.6 milestone Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Formulation of Helicity model in "Modify amplitude model" results in Error
3 participants