Skip to content

convert_waveform_coordinates: apply source_redshift to input masses (mu1/mu2 frame) - #207

Closed
oshaughnessy-junior wants to merge 1 commit into
oshaughn:rift_O4dfrom
oshaughnessy-junior:claude/o4d-source-redshift-detector-frame
Closed

oshaughnessy-junior wants to merge 1 commit into
oshaughn:rift_O4dfrom
oshaughnessy-junior:claude/o4d-source-redshift-detector-frame

Conversation

@oshaughnessy-junior

@oshaughnessy-junior oshaughnessy-junior commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

With source_redshift=z, the vectorized mu1/mu2 blocks in convert_waveform_coordinates used the source-frame mc. At z=0.3 they disagree with the per-row extract_param path. The mc/m1/m2 column rescale (da75550) was already correct.

Fix: multiply the low-level mass inputs (mc, mc_ecc, m1, m2, mtot) by 1+z once, on a copy, at entry, and drop the end-of-function rescale. The per-row fallback rescales P.m1, P.m2 only when no input was rescaled. The caller's array is unchanged.

Test: test_convert_coordinates_source_redshift.py, added to core-units (floors 393/381). On ldas-grid (CVMFS igwn python, no cupy), it passes 13/13 here and fails the 4 mu cases on base f50713b. On CIT, core-units has 1 failure, test_portfolio_balance_heuristic. It fails 3 of 3 runs on the base as well. An adversarial review found no defects.

The O4c fix rides in #204.

🤖 Generated with Claude Code

…input masses

With source_redshift=z, the vectorized branches computed mu1/mu2 from the
source-frame mc. On rift_O4c the final rescale also scaled a ROW instead of a
column (fixed on rift_O4d by da75550). Now the low-level mass inputs (mc,
mc_ecc, m1, m2, mtot) are multiplied by 1+z once, on a copy, at entry. The
per-row fallback rescales P.m1, P.m2 only when no input was rescaled.

Test: vectorized output vs the per-row extract_param path at z=0 and 0.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oshaughnessy-junior

Copy link
Copy Markdown
Contributor Author

Wrong target: O4d changes go into oshaughnessy-junior/rift_O4d. Replaced by oshaughnessy-junior#397, rebuilt on junior/rift_O4d.

@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift-upstream October 5, 2026 01:32 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
private-review-dispatch-rift-upstream — 380c9548 Deployed Oct 5, 2026 by oshaughnessy-junior via Dispatch exact upstream RIFT PR generation #149
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