Skip to content

feat: add zero-parameter ps.PointSolved point-source profile - #531

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/point-source-chi-squared-variants
Jul 27, 2026
Merged

feat: add zero-parameter ps.PointSolved point-source profile#531
Jammy2211 merged 1 commit into
mainfrom
feature/point-source-chi-squared-variants

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds ag.ps.PointSolved — a zero-parameter point-source profile for the new analytically-solved point-source fits (PyAutoLabs/PyAutoLens#657, phase 2 of 5, from Lombardi 2024 arXiv:2406.15280 §5.1). Composing it via af.Model contributes 0 free parameters: the source-plane centre (and flux, when the dataset has fluxes) is solved analytically by the paired PyAutoLens *Solved fit classes instead of being sampled. Also documents a convention landmine found during this work: LensCalc.jacobian_from returns its 2x2 components in (x, y) row/column order, against the codebase's universal (y, x) convention — invisible to existing determinant-only callers, but silently corrupting for any tensor consumer (docstring warning added; no behaviour change).

API Changes

Added ag.ps.PointSolved (zero-parameter profile). No other public-surface changes; jacobian_from change is docstring-only.
See full details below.

Test Plan

  • pytest test_autogalaxy/ (1009 passed locally, incl. new PointSolved construction + af.Model prior-count tests)
Full API Changes (for automation & release notes)

Added

  • ag.ps.PointSolved — zero-parameter point-source profile; pair with the PyAutoLens FitPositions*Solved / FitFluxesSolved / FitTimeDelaysSolved fit classes. Requires no prior-config entry (verified: af.Model composition yields prior_count == 0).

Companion PRs: PyAutoArray (merge first) + PyAutoLens branches feature/point-source-chi-squared-variants.

Generated by the PyAutoLabs agent workflow.

Pairs with the PyAutoLens *Solved fit classes (PyAutoLabs/PyAutoLens#657,
phase 2; Lombardi 2024 arXiv:2406.15280). Also documents jacobian_from's
(x, y) component ordering landmine (docstring only).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 27, 2026
@Jammy2211
Jammy2211 merged commit f0b65f3 into main Jul 27, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/point-source-chi-squared-variants branch July 27, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant