Skip to content

Fix the simultaneous SLaM subhalo grid search across wavebands - #684

Merged
Jammy2211 merged 3 commits into
mainfrom
feature/slam-simultaneous-subhalo-grid-search
Nov 22, 2026
Merged

Jammy2211 merged 3 commits into
mainfrom
feature/slam-simultaneous-subhalo-grid-search

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The grid stage built one analysis per waveband but passed only the final band to the search. It now fits all band factors together, sharing the subhalo position and keeping the dataset offsets used in the rest of the pipeline. Refinement uses the best cell’s per-band model.

Scripts Changed

  • scripts/multi_dataset/features/slam/simultaneous.py — pass the per-band dataset models to the grid stage, fit the factor graph, and read the matching band from the grid result during refinement.
  • notebooks/multi_dataset/features/slam/simultaneous.ipynb — regenerated from the script with PyAutoHands.

Upstream PR

PyAutoFit #1791 is merged. The former first-cell KeyError was reproduced before that library fix.

Test Plan

  • Ran the script and the regenerated notebook independently from fresh output with Python 3.13, merged PyAutoFit d37ada832, and PYAUTO_TEST_MODE=1 using small CPU datasets and JAX disabled. Both completed the four-cell grid and final refinement.
  • Checked every grid-cell model.info: the reference g band’s offsets were fixed at zero, and both offsets for r were free with uniform bounds of −1 to +1 arcsec. Verified script/notebook function parity; all 11 notebook code cells executed.
  • Heart workspace smoke on Python 3.12 passed 42/42 scripts and 2/2 notebooks. Navigator path/banner checks, search-memory checks and git diff --check passed.
  • Scoped Heart dev-ship gate: GREEN. Advisory items were local PyAutoFit, PyAutoGalaxy and PyAutoLens checkouts four commits behind origin, a missing test-run report and no current release rehearsal.

Closes #683.

Jammy2211 and others added 3 commits November 20, 2026 09:04
…ctor graph (#683)

Blocked: SearchGridSearch with a FactorGraphModel raises KeyError in
FactorGraphModel.make_result (PyAutoFit follow-up). Not for merge until that lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit ba7f773 into main Nov 22, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/slam-simultaneous-subhalo-grid-search branch November 22, 2026 19:07
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.

fix: SLaM simultaneous subhalo grid search fits the last band only

1 participant