Skip to content

feat: export the S/N map adapt functions from autolens - #897

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

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

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Phase 2 of making the adapt-mesh-weighting result the default everywhere (PyAutoLabs/PyAutoGalaxy#762). Exports al.galaxy_snr_maps_from and al.soft_snr_maps_from from PyAutoLabs/PyAutoGalaxy#763, so workspace scripts can use them as al.*. al.AdaptImages.from_result and al.image_mesh.HilbertSNR already work through the existing exports. Depends on PyAutoLabs/PyAutoArray#718 and PyAutoLabs/PyAutoGalaxy#763 (same branch name; merge those first).

API Changes

Adds two names to the autolens namespace; nothing else changes. See full details below.

Test Plan

  • test_autolens/analysis/test_adapt_snr_maps.py: exports exist; a simulated lens fitted through AnalysisImaging with a HilbertSNR(pixels=60, edge_pixels=12) mesh, soft_snr_maps_from adapt images and AdaptSplit, keyed by the full and the short ("source") galaxy name, gives a finite and identical log likelihood.
  • Full test_autolens: 1184 passed, 1 xfailed.

Heart

Scoped dev readiness (--repos PyAutoLens) is GREEN. Shown, non-blocking: release validation FAILED (stage integrate), workspace validation not passing (2 failed, 1 timeout, cloud#45815945322: ...). Heart remains RED for release purposes.

Full API Changes (for automation & release notes)

Added

  • autolens.galaxy_snr_maps_from — re-export of autogalaxy.galaxy_snr_maps_from.
  • autolens.soft_snr_maps_from — re-export of autogalaxy.soft_snr_maps_from.

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

al.galaxy_snr_maps_from and al.soft_snr_maps_from (PyAutoGalaxy#763),
next to galaxy_name_image_dict_via_result_from, plus a test fitting a
simulated lens with a HilbertSNR mesh, soft S/N maps and AdaptSplit,
with full and short ("source") galaxy keys giving the same likelihood.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Nov 26, 2026
@Jammy2211
Jammy2211 merged commit 903c081 into main Nov 26, 2026
5 checks passed
@Jammy2211
Jammy2211 deleted the feature/adapt-mesh-weighting-galaxy branch November 26, 2026 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pending-release PR queued for the next release build

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant