Skip to content

Add MGE point-source (foreground lens) example to multi_gaussian_expansion modeling#273

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/mge_point_source
Jul 13, 2026
Merged

Add MGE point-source (foreground lens) example to multi_gaussian_expansion modeling#273
Jammy2211 merged 2 commits into
mainfrom
feature/mge_point_source

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

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 a
compact, 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_from docstring):

  • Explains the compact point-source basis: ~10 linear Gaussians sharing one centre and elliptical
    components, with sigma fixed log-spaced from 0.01″ to 2×pixel-scale (N=4 free params: shared
    centre + shared ellipticity).
  • Recreates the Gaussians line-by-line (copy-paste friendly) and attaches the point component
    to the lens galaxy alongside its extended bulge MGE, mass and shear.
  • Then shows the al.model_util.mge_point_model_from shortcut producing the identical basis in
    one line.
  • Adds the matching __Contents__ entry.

Docs/example only — no library or public-API change.

Scripts Changed

  • scripts/imaging/features/multi_gaussian_expansion/modeling.py (+ regenerated
    notebooks/.../modeling.ipynb, llms-full.txt, workspace_index.json)

Notebook regenerated via PyAutoBuild; unrelated pre-existing notebook drift on main was reverted
to keep this PR focused.

Autonomy — --auto safe (docs, small)

Four-leg ship gate:

  • Tests: n/a — workspace repo has no pytest suite; no public-API change.
  • Smoke: the edited script is not in the curated smoke_tests.txt (not grown to manufacture
    coverage). Validated by running the edited script directly under fast-mode flags
    (PYAUTO_TEST_MODE=2 PYAUTO_SMALL_DATASETS=1 …) → exit 0; new point component appears as
    Basis (N=4) from both the line-by-line and shortcut forms.
  • Review: self-review CLEAN — additive example prose + validated composition code, no
    behaviour change.
  • Heart: stale-evidence tier — sole reason test-run 2026-07-09 + 58 stale parked scripts
    (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

  • Edited script runs end-to-end under fast-mode flags (exit 0)
  • point MGE resolves as Basis (N=4) in model.info
  • Notebook regenerated; PR scoped to the changed script only
  • Human review + merge

Jammy2211 and others added 2 commits July 13, 2026 18:29
…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>
@Jammy2211 Jammy2211 merged commit f9e99d6 into main Jul 13, 2026
8 checks passed
@Jammy2211 Jammy2211 deleted the feature/mge_point_source branch July 13, 2026 17:39
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