Skip to content

test: pin HilbertSNR + soft S/N adapt images through NumPy, vmap and jit - #374

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/adapt-mesh-weighting-workspaces
Nov 26, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/adapt-mesh-weighting-workspaces

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Phase 3a of making the adapt-mesh-weighting result the default everywhere (PyAutoLabs/autolens_workspace#693; library PRs merged: PyAutoLabs/PyAutoArray#717, #718, PyAutoLabs/PyAutoGalaxy#763, PyAutoLabs/PyAutoLens#897). New scripts/imaging/jax_likelihood/hilbert_snr.py (added to smoke_tests.txt): HilbertSNR(pixels=200, edge_pixels=30) drawn from the S/N map, al.soft_snr_maps_from adapt images, short "source" key, AdaptSplit. Pins the NumPy figure of merit (-443.73145939) and checks JAX vmap (figure of merit) and jax.jit(fit_from) (log likelihood, rtol 1e-8) against NumPy. The 15 existing Hilbert scripts and their pins are unchanged.

Release-gated: uses HilbertSNR / AdaptImages.from_result / soft_snr_maps_from, merged to the libraries' main but not yet released to PyPI. Do not merge until a release carries PyAutoArray, PyAutoGalaxy and PyAutoLens with those PRs.

API Changes

None — workspace content only.

Test Plan

  • hilbert_snr.py passes: NumPy log evidence -443.7314594, vmap -443.7314494, jit log likelihood equals NumPy (301.6181047).
  • Full smoke runner (.github/scripts/run_smoke.py) on this branch against library main: 41 passed, 0 failed.

Heart

Scoped dev readiness (--repos HowToLens,HowToGalaxy,autolens_workspace_test,autogalaxy_workspace_test) is GREEN. Shown, non-blocking: release validation FAILED (stage integrate) (red), workspace validation not passing (2 failed, 1 timeout, cloud#45815945322: ...) (yellow). The human authorized a development-only Heart RED override for this task ("Override for phase 3"); the scoped gate was GREEN, so it was not needed. Heart remains RED for release purposes.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

…and jit

New imaging/jax_likelihood/hilbert_snr.py (in the smoke list): the
default adaptive set-up of the workspaces, with the figure of merit
pinned and JAX checked against NumPy. Existing Hilbert pins unchanged
(autolens_workspace#693).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit be51efb into main Nov 26, 2026
3 checks passed
@Jammy2211
Jammy2211 deleted the feature/adapt-mesh-weighting-workspaces branch November 26, 2026 17:56
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.

1 participant