Skip to content

changing for q_mass in inclination definition - #65

Merged
martin-millon merged 2 commits into
mainfrom
martin-dev/fix-q_mass-inclination
Aug 27, 2026
Merged

martin-millon merged 2 commits into
mainfrom
martin-dev/fix-q_mass-inclination

Conversation

@martin-millon

Copy link
Copy Markdown
Member

q_m < q_light rises Jampy exception: hierarc/LensPosterior/kin_constraints.py:239 gets it's inclinaison from the light, even if q_mass is provided: cos_i² = (q_light² - q_intrinsic²) / (1 - q_intrinsic²) .

This raises an error in jampy at low q_intrinsic since q_pot < 0.05. Should we change the definition of the inclination relative to q_mass, when it is provided?

@martin-millon
martin-millon requested a review from sibirrer August 26, 2026 14:36

@sibirrer sibirrer left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you @martin-millon!
If you want. you can also make it optional such that you could control the choice from a user's point of few.

@sibirrer

Copy link
Copy Markdown
Collaborator

That's an interesting question. If there were triviality, then even at low inclinations, we could expect some projected light ellipticity. In that sense I would change the inclination angle to be computed from q_mass in that case

@martin-millon
martin-millon merged commit d9e1d4e into main Aug 27, 2026
1 check failed
@martin-millon
martin-millon deleted the martin-dev/fix-q_mass-inclination branch August 27, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants