Add MGE point-source (foreground lens) example to multi_gaussian_expansion modeling#273
Merged
Conversation
…nsion modeling Add a standalone 'Point Source' section to the imaging MGE modeling example demonstrating a compact, unresolved point-like component (nuclear starburst / AGN / unresolved bulge) modeled as an MGE Basis, both recreated line-by-line and via the al.model_util.mge_point_model_from / ag.model_util.mge_point_model_from shortcut helper. Adds the matching __Contents__ entry. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
What & why
Adds a standalone Lens Point Source section to the imaging MGE modeling example
(
scripts/imaging/features/multi_gaussian_expansion/modeling.py), demonstrating how to model acompact, unresolved point-like component in the foreground lens galaxy (nuclear starburst /
AGN / unresolved bulge) as an MGE
Basis.The section (prose adapted from the
mge_point_model_fromdocstring):centreand ellipticalcomponents, with
sigmafixed log-spaced from 0.01″ to 2×pixel-scale (N=4 free params: sharedcentre + shared ellipticity).
pointcomponentto the lens galaxy alongside its extended
bulgeMGE,massandshear.al.model_util.mge_point_model_fromshortcut producing the identical basis inone line.
__Contents__entry.Docs/example only — no library or public-API change.
Scripts Changed
scripts/imaging/features/multi_gaussian_expansion/modeling.py(+ regeneratednotebooks/.../modeling.ipynb,llms-full.txt,workspace_index.json)Notebook regenerated via PyAutoBuild; unrelated pre-existing notebook drift on
mainwas revertedto keep this PR focused.
Autonomy —
--autosafe(docs, small)Four-leg ship gate:
smoke_tests.txt(not grown to manufacturecoverage). Validated by running the edited script directly under fast-mode flags
(
PYAUTO_TEST_MODE=2 PYAUTO_SMALL_DATASETS=1 …) → exit 0; newpointcomponent appears asBasis (N=4)from both the line-by-line and shortcut forms.behaviour change.
(organism-scope, unrelated to this branch). Acknowledged by the human at launch.
Autonomous run ends at PR-open. Merge / issue-close remain human acts.
Validation checklist
pointMGE resolves asBasis (N=4)inmodel.info