Skip to content

feat: Delaunay examples default to HilbertSNR and AdaptImages.from_result - #697

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 3b of making the adapt-mesh-weighting result the default everywhere (closes #693 once the phase 3a PRs PyAutoLabs/HowToLens#141, PyAutoLabs/HowToGalaxy#110, PyAutoLabs/autolens_workspace_test#374, PyAutoLabs/autogalaxy_workspace_test#142 are in; libraries: PyAutoLabs/PyAutoArray#717, #718, PyAutoLabs/PyAutoGalaxy#763, PyAutoLabs/PyAutoLens#897).

The four scripts that use the Delaunay + Hilbert set-up — imaging/features/pixelization/delaunay.py, group/slam.py, group/features/no_lens_light/slam.py, group/features/linear_light_profiles/slam.py — now build each stage's adapt images with one call:

image_mesh = al.image_mesh.HilbertSNR(pixels=1000, edge_pixels=edge_pixels_total)
adapt_images = al.AdaptImages.from_result(result=..., image_mesh={"source": image_mesh})

(Overlay(shape=(26, 26), edge_pixels=...) in source_pix_1), dropping the S/N 3 cap, weight_power / weight_floor and the hand-appended edge points. Stages that reuse an earlier mesh take al.soft_snr_maps_from(al.galaxy_snr_maps_from(result=...)); the over-sampling thresholds read al.galaxy_snr_maps_from. The prose explains the adapt images as the source S/N map and what HilbertSNR does. guides/modeling/slam_start_here.py (rectangular mesh, code unchanged) now says its adapt image is the source S/N map (from the superseded Mind prompt adapt_image_is_the_s_n_map).

Not changed, by design: the ~31 SLaM / pixelization scripts that use rectangular adaptive meshes (RectangularBilinearAdaptImage + Adapt). There the S/N 3 cap feeds the rectangular mesh's own weighting; changing it is Mind draft/research/autoarray/adaptive_rectangular_meshes_repeat_the_adapt_ima.md. Interferometer scripts are also out of scope.

Release-gated: do not merge until a release carries PyAutoArray, PyAutoGalaxy and PyAutoLens with the PRs above.

One behaviour note: the edge ring is now placed half a pixel beyond the mask's outer edge (mask.circular_radius + pixel_scale / 2); on odd-sized frames that is half a pixel closer than the old mask_radius + pixel_scale / 2.

API Changes

None — workspace content only.

Test Plan

  • The five changed scripts run under the smoke profile (delaunay 27 s, group slam 17 s / 13 s / 13 s, slam_start_here 6 s).
  • Full smoke runner against library main: 43 scripts and 2 notebooks passed, 0 failed.
  • Notebooks regenerated for the five changed scripts only.

Heart

Scoped dev readiness (--repos autolens_workspace) is GREEN. Shown, non-blocking: release validation FAILED (stage integrate) (red), workspace validation not passing (2 failed, 1 timeout, cloud#45815945322: ...) (yellow). The human's phase 3 RED override ("Override for phase 3") was not needed. Heart remains RED for release purposes.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

imaging/features/pixelization/delaunay.py and the three group SLaM
scripts build each pipeline stage's adapt images with
AdaptImages.from_result(result, image_mesh={"source": HilbertSNR(...)})
(Overlay(edge_pixels=...) in source_pix_1), dropping the S/N 3 cap,
weight_power / weight_floor and hand-appended edge points; later stages
use soft_snr_maps_from(galaxy_snr_maps_from(result)); over-sampling
thresholds read galaxy_snr_maps_from. slam_start_here.py says the adapt
image is the source S/N map. Rectangular-mesh SLaM scripts are
unchanged (autolens_workspace#693).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 4c46330 into main Nov 26, 2026
8 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.

feat: workspaces default to HilbertSNR and AdaptImages.from_result

1 participant