Skip to content

feat: combined strong+weak lensing features example (weak series step 8) - #251

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/weak-strong-lensing
Jul 9, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/weak-strong-lensing

Conversation

@Jammy2211

@Jammy2211 Jammy2211 commented Jul 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds scripts/weak/features/strong_lensing/{simulator,fit,modeling}.py — one tracer simulated into an Imaging dataset (central arcs) and a surrounding WeakDataset shear field (to 10", σ=0.1, 400 galaxies); the joint likelihood is sampled with one Nautilus search via the AnalysisFactor/FactorGraphModel API with fully shared priors. Science framing: weak shear as the large-radius complement to strong lensing around clusters (Niemiec 2020 hybrid-Lenstool) and groups (Oguri 2012 SGAS). Companion to PyAutoLabs/PyAutoLens#587 (mixed-graph visualization fix) — merge the library PR first. Tracking issue: #247.

Scripts Changed

  • scripts/weak/features/strong_lensing/simulator.py (new) — both datasets from one tracer.
  • scripts/weak/features/strong_lensing/fit.py (new) — FitImaging + FitWeak with a shared tracer; joint LL = exact sum (6653.7 + 676.5 = 7330.2); shear profile demo.
  • scripts/weak/features/strong_lensing/modeling.py (new) — factor-graph joint fit; full real Nautilus run recovered einstein_radius = 1.5999 (1.5993–1.6005) vs truth 1.6.
  • llms-full.txt / workspace_index.json — catalogue regenerated in-branch.

Validation checklist (--auto run)

🤖 Generated with Claude Code

scripts/weak/features/strong_lensing/{simulator,fit,modeling}.py: one tracer
simulated into an Imaging dataset (central arcs, no lens light) and a
WeakDataset shear field to 10" (space-like noise 0.1, 400 galaxies); fit.py
shows the joint log likelihood is the per-dataset sum; modeling.py samples it
with Nautilus via the AnalysisFactor/FactorGraphModel API with fully shared
priors (NumPy graph loop — the weak factor is NumPy). Science framing:
weak shear as the large-radius complement to strong lensing around clusters
(Niemiec 2020 hybrid-Lenstool) and groups (Oguri 2012 SGAS). Navigator
catalogue regenerated in-branch.

Step 8 of the weak-lensing series (autolens_workspace#247).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211 Jammy2211 added the pending-release PR queued for the next release build label Jul 9, 2026
@Jammy2211
Jammy2211 merged commit e71c1f8 into main Jul 9, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/weak-strong-lensing branch July 9, 2026 11:43
@Jammy2211 Jammy2211 removed the pending-release PR queued for the next release build label Oct 7, 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