Skip to content

std_and_conj_hlmoff: key SphHarmTimeSeries modes by (l,m) - #433

Merged
oshaughnessy-junior merged 3 commits into
rift_O4dfrom
claude/fix-std-and-conj-hlmoff-mode-key
Oct 8, 2026
Merged

oshaughnessy-junior merged 3 commits into
rift_O4dfrom
claude/fix-std-and-conj-hlmoff-mode-key

Conversation

@oshaughnessy-junior

Copy link
Copy Markdown
Owner

std_and_conj_hlmoff has a branch for when hlmoft returns a SphHarmTimeSeries instead of a dict. That branch stored each mode as hlmsT[mode]=hxx, but mode is not defined in that scope, so the call raised UnboundLocalError. The fix stores under (l,m). No defaults change.

The new test, test/test_std_and_conj_hlmoff_sphharm.py, monkeypatches hlmoft to return a TaylorT4 SimInspiralChooseTDModes list. It checks the mode keys and each mode's FFT and conjugate FFT, with deltaF both set and None.

Mutation check (ldas-grid, IGWN CVMFS python, no GPU, OMP_NUM_THREADS=1): the fixed code passes 2/2. Each of three mutants fails 2/2: the original mode, the constant key (2,2), and (l,-m). On the same host, test_lisa_lalsimutils_compat.py and test_calmarg_ile_waveform_alignment.py also pass (16 tests, including the new ones).

Found 2026-10-07 by the early-time compression team's code inventory.

🤖 Generated with Claude Code

The SphHarmTimeSeries branch stored each mode under the undefined name
'mode', raising UnboundLocalError. Add a regression test that drives
that branch for both the deltaF-set and deltaF=None paths.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift October 7, 2026 23:54 — with GitHub Actions Active

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Independent automated review completed at the recorded exact commit. Detailed findings were withheld from public output by the private-context egress policy and require private human declassification.

@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift October 8, 2026 00:49 — with GitHub Actions Active
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift October 8, 2026 09:24 — with GitHub Actions Active
@oshaughnessy-junior
oshaughnessy-junior merged commit 3249e8c into rift_O4d Oct 8, 2026
35 checks passed
@oshaughnessy-junior
oshaughnessy-junior deployed to private-review-dispatch-rift October 8, 2026 10:04 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
private-review-dispatch-rift — 73592d1f Deployed Oct 8, 2026 by oshaughnessy-junior via Dispatch exact RIFT PR generation #1700
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