feat: add point-source light profiles - #562
Merged
Merged
Conversation
This was referenced Aug 9, 2026
Collaborator
Author
|
Workspace companions are ready as drafts:
Both use the shared |
Collaborator
Author
|
Companion workspace CI is now fully green:
Both remain draft and |
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
Closes #561
API Changes
Adds
ag.lp.PointSourceandag.lp_linear.PointSourcefor unresolved image-plane emission.Point-source intensity is total detector flux, conserved across light-profile over-sampling and oversampled PSF convolution.
Adds unbinned image-evaluation hooks used by composite light objects during oversampled convolution.
This does not replace
ag.ps.PointFluxplus PyAutoLens'sPointSolverfor multiple lensed point images.See full details below.
Test Plan
python -m pytest test_autogalaxy/ -x -q(1022 passed, 5 skipped).Full API Changes (for automation & release notes)
Removed
Added
ag.lp.PointSource(centre=(0.0, 0.0), intensity=0.1)— discrete direct image-plane emission with total-flux normalization.ag.lp_linear.PointSource(centre=(0.0, 0.0))— point-source intensity solved by linear inversion.LightProfile.image_2d_unbinned_from(...)— evaluates over-sampled coordinates while retaining parent-grid metadata.Galaxy.image_2d_unbinned_from(...),Galaxies.image_2d_unbinned_from(...), and corresponding list/dict variants — propagate unbinned evaluation through composite light objects.Changed Behaviour
Grid2Dduring profile evaluation before converting values to the convolver's fine-resolution format.intensityonPointSourcedenotes total discrete detector flux; the selected sub-pixel is scaled so mean-binning preserves that flux.Migration
ag.ps.PointFluxwith PyAutoLens'sPointSolverwhen modelling multiple images produced by lensing.Generated by the PyAutoLabs agent workflow.