Skip to content

Proposed fix to typo in Eggleton approximation for RLO in independent.sample_porb#806

Open
nweatherford wants to merge 1 commit into
COSMIC-PopSynth:developfrom
nweatherford:patch-1
Open

Proposed fix to typo in Eggleton approximation for RLO in independent.sample_porb#806
nweatherford wants to merge 1 commit into
COSMIC-PopSynth:developfrom
nweatherford:patch-1

Conversation

@nweatherford

@nweatherford nweatherford commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

This corrects an apparent typo in the Eggleton approximation for Roche Lobe overflow in sample_porb, when computing the minimum porb for the sampler. Specifically, there were no parentheses around the (1/3) exponent in the log term of the denominator. So instead of being log(1+q**(1/3)), as it's supposed to be, the term has been log(1+q**1/3) == log(1+q/3). The resulting R_L can be be smaller by nearly an order of magnitude for q = 0.1; this may imply the sampler has been starting out with too few near-contact binaries for significantly asymmetric mass ratios.

Note: I don't know why the unit test failed. This edit runs fine for me on Quest.

Fixed a typo in the Eggleton approximation for Roche Lobe overflow. Someone forgot to put parentheses about the (1/3) exponent in the log term of the denominator. So instead of being log(1+q**(2/3)), as it's supposed to be, the term was previously log(1+q**1/3) == log(1+q/3).
@nweatherford nweatherford changed the title Update independent.py Proposed fix to typo in Eggleton approximation for RLO in independent.sample_porb Jun 18, 2026
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.

1 participant