Skip to content

Support Yang+2024 SIDM profiles in substructure halo batching - #691

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/yang24-sidm-gravothermal-profile
Aug 6, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/yang24-sidm-gravothermal-profile

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Companion to PyAutoLabs/PyAutoGalaxy#556 (requested in #631): lets subhalo and line-of-sight halo populations use the Yang, Nadler, Yu & Zhong (2024) parametric SIDM gravothermal profile on the vmapped multi-plane substructure-tracing path. The halo-parameter extractor packs the evolved (rho_s, r_s, r_c) of each halo, so tau is resolved per halo at construction — including per-redshift-plane halo ages via each profile's t_age.

API Changes

None — internal changes only. The private _halo_parameter_extractor_from gains a branch for the new Yang profile classes (guarded with getattr, so PyAutoLens still works against a released PyAutoGalaxy without them).
See full details below.

Test Plan

  • test_autolens/lens/test_substructure_util.py — new tests: al.mp exposes both Yang classes; galaxies_to_halo_arrays packs (centre, rho_s_evolved, scale_radius_evolved, core_radius_evolved) with correct shapes/masks (jax).
  • Full test_autolens/ suite: 512 passed.
Full API Changes (for automation & release notes)

Changed Behaviour

  • autolens.lens.substructure_util._halo_parameter_extractor_from (private) now supports ag.mp.YangSIDMSph and ag.mp.YangSIDMMCRLudlowSph (5 packed parameters), alongside the existing cNFW, Kaplinghat and truncated-NFW classes.

Migration

  • None required — purely additive; skips gracefully when the installed PyAutoGalaxy predates the Yang profiles.

Generated by the PyAutoLabs agent workflow.

Extends the substructure halo-parameter extractor to YangSIDMSph and
YangSIDMMCRLudlowSph, packing the evolved (rho_s, r_s, r_c) so subhalo
and line-of-sight halo populations can use the Yang+2024 gravothermal
profile on the vmapped multi-plane tracing path. Per-plane halo ages
enter through each profile's own t_age at construction.

Requested in #631; companion to PyAutoGalaxy#556.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Aug 6, 2026
@Jammy2211
Jammy2211 merged commit 5c7e377 into main Aug 6, 2026
@Jammy2211
Jammy2211 deleted the feature/yang24-sidm-gravothermal-profile branch August 6, 2026 19:23
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Sep 4, 2026
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