Repository navigation
feat: point-source imaging from PSF-convolved point images; pass image= to AnalysisPoint - #591
Merged
Merged
Conversation
…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>
This was referenced Oct 21, 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 point-source example imaging now looks like a real lensed quasar. Each multiple image is a delta-function
al.lp.PointSourceat itsPointDatasetposition, 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
PointSolveris for.The modeling scripts now pass
image=datatoAnalysisPoint, so visualization writesimage_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-convolvedPointSourceimages at the dataset positions; PSF normalized; outputsimage_with_points.pngto the dataset folder.scripts/point_source/modeling.py—AnalysisPoint(image=data); docstring fixed.scripts/point_source/features/fluxes.py—image=dataon both analyses; docstring fixed.scripts/point_source/features/time_delays.py—image=dataon both analyses; docstring fixed.scripts/point_source/features/extra_galaxies/modeling.py—image=data.scripts/point_source/features/scaling_relation/modeling.py—image=data.llms-full.txt,workspace_index.json) regenerated with PyAutoHandsgenerate.py autolens.Upstream PR
PyAutoLabs/PyAutoLens#780 (must merge first, and these scripts need it released)
Test Plan
profile_smoke.yamlenv, worktree library): simulator and the 5 modified scripts all exit 0.PYAUTO_TEST_MODE=2run ofmodeling.pywritesimage_with_points.png.Readiness
Heart readiness at ship time: YELLOW. The reasons:
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