Repository navigation
feat: Delaunay examples default to HilbertSNR and AdaptImages.from_result - #697
Merged
Merged
Conversation
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>
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
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:(
Overlay(shape=(26, 26), edge_pixels=...)insource_pix_1), dropping the S/N 3 cap,weight_power/weight_floorand the hand-appended edge points. Stages that reuse an earlier mesh takeal.soft_snr_maps_from(al.galaxy_snr_maps_from(result=...)); the over-sampling thresholds readal.galaxy_snr_maps_from. The prose explains the adapt images as the source S/N map and whatHilbertSNRdoes.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 promptadapt_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 Minddraft/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 oldmask_radius + pixel_scale / 2.API Changes
None — workspace content only.
Test Plan
main: 43 scripts and 2 notebooks passed, 0 failed.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