Repository navigation
test: migrate jax_grad scripts to consolidated rectangular meshes - #209
Merged
Merged
Conversation
RectangularAdaptDensity/AdaptImage are now the kernel-CDF meshes (PyAutoArray#403); the RectangularKernel* names and the linear empirical-CDF path are gone. Linear staircase variants retired; kernel variants take the plain names with strict FD-step-sweep assertions on all parameters (os=1, os=4, production shape, interferometer sparse). FoM-parity assertions retired with their linear reference. Both scripts re-certified passing. ENV declaration lines untouched. Part of PyAutoLabs/PyAutoArray#402. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XK2ZZagTywsBZC4CZL66eB
The plain-name meshes' numerics shifted with PyAutoArray#403 (linear → kernel CDF): rectangular.py and rectangular_mge.py improve at the default bandwidth and get their measured values; rectangular_dspl.py is bandwidth-sensitive (default over-smooths its adapt-image weights, LL -6340 vs -3824 at 0.1) so it pins bandwidth=0.1, documented in-line. Interferometer references unchanged (pass within tolerance). All seven scripts verified green. Follow-up research prompt filed on bandwidth defaults (Mind draft/research/autoarray/rectangular_kernel_bandwidth_defaults.md). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XK2ZZagTywsBZC4CZL66eB
Collaborator
Author
|
Second commit |
… the jax_grad rewrite Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XK2ZZagTywsBZC4CZL66eB
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
Migrates the two
jax_gradcertification scripts to the consolidated rectangular meshes (PyAutoLabs/PyAutoArray#403, merged): the plain namesRectangularAdaptDensity/RectangularAdaptImageare now the kernel-density-CDF meshes, and theRectangularKernel*names plus the old linear empirical-CDF path no longer exist — these scripts were the only two files in any workspace importing the removed names.scripts/jax_grad/imaging_pixelization.py: the old linear variants B/C/D (staircase invariance at os=1; 5%-tolerance FD at os=4) are retired — the staircase they documented was deleted with the linear mesh, exactly as variant B's docstring said would happen ("a future library change... will fail loudly — update it"). The kernel variants E/F/G become variants B/C/D under the plain names, keeping strict FD-step-sweep assertions on ALL parameters at os=1, os=4 and the full production shape, the mass/shear-live checks, and the documented os=1 Einstein-radius branch-flip exclusion.scripts/jax_grad/interferometer.py: the old variant B (linear staircase — all gradients correctly ~zero, "no usable gradients") is retired and the kernel variant D becomes variant B under the plain name: strict FD on every parameter on the sparse-operator path. Variant A (parametric) and C (uniform) unchanged.Scripts Changed
scripts/jax_grad/imaging_pixelization.pyscripts/jax_grad/interferometer.pyTest Plan
python scripts/jax_grad/imaging_pixelization.py— all variants pass (strict FD, eager-vs-JIT consistency, mass/shear live)python scripts/jax_grad/interferometer.py— all variants passLibrary PR: PyAutoLabs/PyAutoArray#403 (merged). Part of PyAutoLabs/PyAutoArray#402.
Note: this repo is concurrently claimed by
env-declaration-docstring-form(PyAutoHands#189) — this PR deliberately touches ONLY the two jax_grad scripts (claim override user-authorized 2026-07-23); the# ENV:declaration lines in both files are preserved byte-for-byte.Generated by the PyAutoLabs agent workflow.