Repository navigation
Fix the simultaneous SLaM subhalo grid search across wavebands - #684
Merged
Merged
Conversation
…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>
…eous-subhalo-grid-search
This was referenced Nov 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
KeyErrorwas reproduced before that library fix.Test Plan
d37ada832, andPYAUTO_TEST_MODE=1using small CPU datasets and JAX disabled. Both completed the four-cell grid and final refinement.model.info: the referencegband’s offsets were fixed at zero, and both offsets forrwere free with uniform bounds of −1 to +1 arcsec. Verified script/notebook function parity; all 11 notebook code cells executed.git diff --checkpassed.Closes #683.