Skip to content

Corner plot config switches and the latent-parameter descriptions - #595

Merged
Jammy2211 merged 11 commits into
PyAutoLabs:mainfrom
samlange04:feature/corner-plot-labels
Oct 26, 2026
Merged

Jammy2211 merged 11 commits into
PyAutoLabs:mainfrom
samlange04:feature/corner-plot-labels

Conversation

@samlange04

@samlange04 samlange04 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Expose the component and latent corner-plot switches and explain the labels produced by the current libraries. Model-declared latent parameters retain their saved conversion ranges; periodic recentering applies only to plots. Full-sample mode writes files/latent/samples.csv; PDF-draw mode produces latent summaries instead.

Component superscripts distinguish different named galaxy/profile paths; profiles within one path, such as Gaussians in a basis, can share a superscript.

The contributor's existing branch and history are retained. Configuration comments now describe enablement accurately, and generated notebooks follow the canonical scripts.

Scripts Changed

  • scripts/group/modeling.py
  • scripts/guides/plot/searches.py
  • scripts/guides/results/latent_variables.py
  • scripts/imaging/modeling.py
  • scripts/interferometer/modeling.py
  • scripts/multi_galaxy/modeling.py
  • scripts/point_source/modeling.py

Upstream PR

Validation

  • Fresh isolated Heart smoke passed: 42 scripts and 2 notebooks, including the affected modeling examples. Across the five linked PRs: 146 scripts + 6 notebooks passed.
  • Seven notebooks regenerated through Hands and independently verified; all 20 changed notebooks across the task pass source parity.
  • Independent source/config/notebook review: CLEAN. Reviewed prose accurately covers shared superscripts within one named path.
  • Three representative full-data pages executed and reviewed CLEAN: imaging (9,898 posterior rows, 10 figures), interferometer (2,739 rows, 8 figures), point-source (1,848 rows, 6 figures). Image links and copied artifact SHA256 hashes verified; no local-home path leaks.
  • Accepted validation scope: the human explicitly accepted focused checks and representative rendered examples instead of fresh inference runs for every page. The group full run was stopped; its checkpoint is retained. Group source/notebook changes are included and smoke-tested, but markdown/group/modeling.md was not regenerated and remains the previous artifact. No group convergence or fresh rendered-output claim is made.
  • No executable changes were introduced by the final prose qualification; AST and configuration-value equivalence preserve applicability of the smoke results.
  • Heart YELLOW/no RED in retained evidence; unrelated readiness findings remain recorded. This PR does not assert release readiness.
  • Current-head CI is checked separately before merge. Shipping remains gated on published Galaxy docs: scientific introductions for 51 non-imaging features #656; no release or merge authorized.

Evidence: task worktree logs/continuation/smoke-validation-summary.json, review/, and lens/. Configuration prerequisite #602 is merged and incorporated.

Task: PyAutoLabs/autofit_workspace#177. No release or merge is performed by this update; merge remains human-authorized.

Prepared through the PyAutoLabs development workflow on the existing contributor PR.

Group SLaM smoke repair — 2026-10-26

The ordinary smoke profile bypassed sampling, yielding zero fitted member luminosity and an invalid zero-width dispersion prior in scripts/group/slam.py (Heart run 40294511523). Its release-profile run already passed in 140.79 seconds. Add a single config/build/profile_smoke.yaml override so this script uses reduced real sampling (PYAUTO_TEST_MODE=1), preserving scientific priors and all other smoke settings.

Validation: canonical isolated Heart smoke on a fresh scratch dataset passed the unchanged script in 64.7 seconds; source SHA256 matches the task script. Strict environment-profile validation returned 0 errors / 0 warnings. Effective-environment comparison across every workspace script confirms only this script changes, solely mode 2 → 1. No notebooks require regeneration for this configuration-only addition. Current-head CI must pass; Galaxy #656 publication remains the merge gate.

Heart RED development override for this continuation

Live human authorization, 2026-10-26: "Authorize development override", responding to the explicit request covering both CI fixes and development addressing the release blockers needed for the Galaxy dependency. Human also requested all backlog resolution except Pulse. This permits development shipping, not release through RED or a CI bypass. No merge is performed by this update.

Exact currently published RED reasons:

  • release validation FAILED (stage integrate)
  • PyAutoHeart/workflows/Release Integrate: failure
  • PyAutoHeart/workflows/Workspace Smoke: failure
  • manifest_drift/checks/workspace checkouts (manifest ↔ disk): red
  • Release readiness: release validation FAILED (stage integrate)
  • autolens: red
  • Workspace validation: NOT ready — 1429p / 1f / 125s @ cloud#40294511523
  • test_run: red
  • Release validation: NOT release_ready — v? profile=? (2026-10-26T07:48:52+00:00)
  • validation_report/stages/integrate: fail
  • PyAutoBrain: red
  • PyAutoLens: red
  • autolens_profiling: red
  • Worktree drift: 1 orphan / 0 missing / 3 dirty

samlange04 and others added 10 commits October 22, 2026 19:19
… labels

`plots_search.yaml` gains PyAutoFit's two new nest switches: one corner plot per
top-level model component (on) and the derived-parameter corner plots (off).
`notation.yaml` gives gamma_1 / gamma_2 distinct labels (both were \gamma) and
labels for the derived parameters the new plots show (axis ratio q, angle \phi,
shear magnitude \gamma, multipole k_m / phi_m, k_3 / phi_3 / k_4 / phi_4).

The modeling scripts describe the superscript as the path of names a component
was given in the model (`lens.mass`, `galaxy.bulge`) and show
`corner_anesthetic(..., derived=True)`; the plot guide describes the same rule.

Pairs with PyAutoFit's `fix/corner-anesthetic-duplicate-labels` and
PyAutoGalaxy's `feature/derived-parameters` branches.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
The config switch is `corner_anesthetic_latent` and the files
`corner_anesthetic_latent[_<component>].png`; the plots are made once the fit
completes, per component only where one has a latent parameter, and the
latent parameters also reach `latent.csv`.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…rner plot after the fit

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
…rs switches

Mirror the two keys PyAutoFit added when merging #1709: the per-component latent
corner plots get their own plots_search.yaml switch, and output.yaml can keep a
model's declared latent parameters out of latent.csv / latent.results.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit dd9c54e into PyAutoLabs:main Oct 26, 2026
15 checks passed
@samlange04
samlange04 deleted the feature/corner-plot-labels branch November 3, 2026 11:27
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.

2 participants