Skip to content

Add LOS halo sampling with negative kappa sheets#414

Merged
Jammy2211 merged 1 commit intomainfrom
feature/los-halos
Apr 3, 2026
Merged

Add LOS halo sampling with negative kappa sheets#414
Jammy2211 merged 1 commit intomainfrom
feature/los-halos

Conversation

@Jammy2211
Copy link
Copy Markdown
Collaborator

Summary

  • Adds autolens/lens/los.py implementing line-of-sight dark matter halo sampling following He et al. (2022, MNRAS 511, 3046)
  • LOSSampler class orchestrates: plane slicing, halo mass/position/concentration sampling, NFWTruncatedSph conversion via from_m200_concentration, and compensatory negative convergence sheet computation
  • 32 unit tests covering all functions (comoving geometry, plane slicing, sampling, negative kappa, full LOSSampler pipeline)

Test plan

  • All 32 tests in test_autolens/lens/test_los.py pass
  • Verify workspace simulator script runs end-to-end with this module

🤖 Generated with Claude Code

Implements line-of-sight dark matter halo sampling following He et al. (2022,
MNRAS 511, 3046). The LOSSampler class orchestrates plane slicing, halo mass/
position/concentration sampling, NFWTruncatedSph conversion, and compensatory
negative convergence sheet computation for mass conservation in multi-plane
ray-tracing simulations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Jammy2211 Jammy2211 merged commit abd5816 into main Apr 3, 2026
0 of 8 checks passed
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