Skip to content

feat: point-source imaging from PSF-convolved point images; pass image= to AnalysisPoint - #591

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/point-source-image-overlay
Oct 21, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/point-source-image-overlay

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

The point-source example imaging now looks like a real lensed quasar. Each multiple image is a delta-function al.lp.PointSource at its PointDataset position, with intensity = source flux × |magnification|, convolved with a normalized Gaussian PSF.

The point sources sit on an image-plane galaxy at the lens redshift. The script prose explains why: a delta function is not ray-traced, which is what the PointSolver is for.

The modeling scripts now pass image=data to AnalysisPoint, so visualization writes image_with_points.png, the image with the observed (and model) positions plotted over it. The docstrings that previously claimed this already happened have been corrected.

Part of PyAutoLens#779.

Scripts Changed

  • scripts/point_source/simulator.py — imaging built from PSF-convolved PointSource images at the dataset positions; PSF normalized; outputs image_with_points.png to the dataset folder.
  • scripts/point_source/modeling.py — AnalysisPoint(image=data); docstring fixed.
  • scripts/point_source/features/fluxes.py — image=data on both analyses; docstring fixed.
  • scripts/point_source/features/time_delays.py — image=data on both analyses; docstring fixed.
  • scripts/point_source/features/extra_galaxies/modeling.py — image=data.
  • scripts/point_source/features/scaling_relation/modeling.py — image=data.
  • Notebook twins and the catalogue (llms-full.txt, workspace_index.json) regenerated with PyAutoHands generate.py autolens.

Upstream PR

PyAutoLabs/PyAutoLens#780 (must merge first, and these scripts need it released)

Test Plan

  • Smoke (profile_smoke.yaml env, worktree library): simulator and the 5 modified scripts all exit 0.
  • PYAUTO_TEST_MODE=2 run of modeling.py writes image_with_points.png.

Readiness

Heart readiness at ship time: YELLOW. The reasons:

  • workspace validation not passing (1 failed, cloud#39224774724: euclid scripts/tools/diagnose_latent.py)
  • manifest drift: workspace checkouts (manifest ↔ disk) — 1 mismatch(es) vs PyAutoMind/repos.yaml
  • release validation incomplete: no rehearsal for current source

The Heart door read RED at task start. The human authorized development on 2026-10-21 ("I override, go"), and none of these reasons involve point-source code.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

Jammy2211 and others added 2 commits October 21, 2026 10:56
…pass image= to AnalysisPoint (PyAutoLens#779)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 91eae55 into main Oct 21, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/point-source-image-overlay branch October 21, 2026 10:26
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