Repository navigation
Description
Overview
The likelihood-tier hazard profiler found a five-order-of-magnitude documentation/configuration mismatch in PyAutoArray's curvature-diagonal stabilization path. This task corrects the documentation to describe the caller-supplied value, the packaged 1.0e-3 default, and workspace overrides without changing numerical behavior.
Plan
- Align the curvature helper docstring with the actual Settings/config path.
- Clarify the corresponding Settings parameter documentation.
- Run the PyAutoArray test suite and confirm no runtime behavior or public API changed.
Detailed implementation plan
Affected Repositories
- PyAutoArray (primary)
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| PyAutoArray (GitHub main) | main | clean remote; no local checkout |
Suggested branch: feature/curvature-diag-doc-config-drift
Work Classification
Library
Implementation Steps
- Update
autoarray/inversion/inversion/inversion_util.pysocurvature_matrix_with_added_to_diag_fromdocuments a caller-supplied positive diagonal value, theSettingspath, the packaged1.0e-3default, and workspace overrides. - Document the helper's
value,no_regularization_index_list, andxpparameters and its returned matrix. - Update
autoarray/settings.pysono_regularization_add_to_curvature_diag_valuestates the packaged default and override behavior. - Run
python -m pytest test_autoarray/ -x.
Key Files
autoarray/inversion/inversion/inversion_util.py— stale1.0e-8claim and incomplete parameter docs.autoarray/settings.py— configuration-facing parameter documentation.autoarray/config/general.yaml— authoritative packaged1.0e-3value; reference only.
Original Prompt
Click to expand starting prompt
Align curvature-diagonal floor documentation with configuration
Type: bug
Target: autoarray
Repos:
- PyAutoArray
Difficulty: small
Autonomy: safe
Priority: normal
Status: formalised
Source: autolens_profiling#110 · findinglikelihood.imaging-pixelization.curvature-floor-doc-config-drift
The tier-2 likelihood hazard scan proved that
curvature_matrix_with_added_to_diag_from documents a fixed 1.0e-8
diagonal addition while the packaged PyAutoArray configuration supplies
1.0e-3 through
Settings.no_regularization_add_to_curvature_diag_value. The ratio is
1e5, and workspaces may override the packaged setting.
Correct the public-facing source documentation so it describes the value
actually passed by the caller, names the packaged 1.0e-3 default and the
workspace override seam, and documents the helper's currently omitted
parameters. Do not change the configured value or any numerical behavior.
Acceptance:
- No PyAutoArray source documentation claims that this helper always adds
1.0e-8. - The helper and Settings documentation agree with
autoarray/config/general.yaml. - The PyAutoArray test suite is green.
Activity
Jammy2211 commentedon Aug 13, 2026
Library PR Created
7cdfb4350d5057438c11211487bd338e1a63d140pending-releaseWorkspace impact
None. This changes documentation only: no public API, configured value, executable statement, or runtime behavior changed. The task is parked at the manual merge checkpoint; no release was performed.
Jammy2211 commentedon Aug 13, 2026
Shipped — 2026-08-13
PRs
Summary
The documentation/configuration drift is fixed and merged at
61844927ce4e6dd060847adb2cf925910f69e93a. The helper and Settings docs now state the packaged1.0e-3default, workspace override seam, and absolute scale dependence; configuration and numerical behavior are unchanged.Validation
GitHub Actions run 31743635821 succeeded on Python 3.12 and 3.13. No release was performed.