Skip to content

feat: scripts/weak/modeling.py — weak lensing model-fit tutorial - #241

Merged
Jammy2211 merged 2 commits into
mainfrom
feature/weak-modeling
Jul 9, 2026
Merged

Jammy2211 merged 2 commits into
mainfrom
feature/weak-modeling

Conversation

@Jammy2211

Copy link
Copy Markdown
Collaborator

Summary

Adds scripts/weak/modeling.py — the weak-lensing model-fit tutorial completing the simulate → fit → model core workflow of the series — and mirrors the new weak_dataset/fit_weak visualize/plots.yaml sections into the workspace config.

Companion to PyAutoLabs/PyAutoLens#580 (al.AnalysisWeak). Library-first merge gate: merge the library PR before this one. Tracking issue: PyAutoLabs/PyAutoLens#579.

Scripts Changed

  • scripts/weak/modeling.py (new) — Nautilus Isothermal fit to the simulated WeakDataset via al.AnalysisWeak; auto-simulates the dataset if missing; validated end-to-end (recovered einstein_radius = 1.556 (1.476–1.631) vs truth 1.6, ~7 min CPU; the search's own VisualizerWeak produced the on-the-fly subplots).
  • config/visualize/plots.yaml — adds weak_dataset / fit_weak sections mirroring the new packaged defaults.

Validation checklist (--auto run — plan was not pre-approved)

🤖 Generated with Claude Code

- Nautilus fit of an Isothermal mass model to the simulated WeakDataset via the
  new al.AnalysisWeak (PyAutoLens feature/weak-modeling), completing the
  simulate -> fit -> model core workflow of the weak-lensing series
- Auto-simulates dataset/weak/simple if missing, mirroring imaging/modeling.py
- Mirrors the new weak_dataset / fit_weak visualize/plots.yaml sections into the
  workspace config

Step 4 of the weak-lensing series (PyAutoLabs/PyAutoLens#579).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 6f62a55 into main Jul 9, 2026
8 checks passed
@Jammy2211
Jammy2211 deleted the feature/weak-modeling branch July 9, 2026 10:08
@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