feat: scripts/weak/modeling.py — weak lensing model-fit tutorial#241
Merged
Conversation
- 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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 newweak_dataset/fit_weakvisualize/plots.yamlsections 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 simulatedWeakDatasetviaal.AnalysisWeak; auto-simulates the dataset if missing; validated end-to-end (recoveredeinstein_radius = 1.556 (1.476–1.631)vs truth 1.6, ~7 min CPU; the search's ownVisualizerWeakproduced the on-the-fly subplots).config/visualize/plots.yaml— addsweak_dataset/fit_weaksections mirroring the new packaged defaults.Validation checklist (--auto run — plan was not pre-approved)
🤖 Generated with Claude Code