Repository navigation
Complete HowToLens chapter 4 review - #121
Merged
Merged
Conversation
Jammy2211
marked this pull request as ready for review
November 1, 2026 21:29
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.
Complete the approved editorial review of all six Chapter 4 tutorials, from extra galaxies through weak lensing. Clarify noise scaling, measured centres, MGE counts, mass-decomposition degeneracies and scaling-relation assumptions. Cluster prose distinguishes source/deflector planes, matched features, uncertainties and catalogue/model freedom; relates PointSolver to quasar examples; explains priors, solved sources, joint likelihood and shared member parameters. Results guidance distinguishes one fitted realization from posterior uncertainty, tied member profiles from independent measurements, and source-plane residuals from a full fit assessment.
Replace the group fixed-halo experiment with fitted galaxy-only and galaxy-plus-NFW models, motivated by LCDM. Illustrative NFW: fixed centre, kappa_s prior 0–0.5, scale-radius prior 5–50 arcsec. Preserve galaxy priors/data and report NFW-minus-galaxy-only log evidence, handling unavailable values. Keep the scaling exercise separate.
Other approved changes: 4-arcsec masks in Tutorials 2–3 (also affecting MGE extent/luminosity aperture), missing triple-galaxy over-sampling, earlier group over-sampling, and corrected labels/messages. Cluster scientific code is unchanged. Regenerate notebooks/catalogues with PyAutoHands functions, preserving metadata and LaTeX.
Validation: syntax, schema, metadata and code-consistency checks passed, with scientific code consistency verified. Targeted PyAutoLens checks verified sampling, scaling counts 14/11/12/11/23, group counts 19/21/18, unchanged galaxy priors/baseline and finite NFW deflections. Evidence branches used supplied test values. Full sampling fits, evidence convergence, CI and visual mask validation remain unassessed; no scientific halo preference is claimed.
Tutorials 1–5 reviewed throughout. Cluster closing sections cover magnifications, image-plane validation, posterior interpretation and the transition to weak lensing. Weak-lensing opening clarifies shape noise, shear versus reduced shear, observational calibration, mass scales and the idealized simulation. Weak-lensing mass-map and fit diagnostics clarify reconstruction limitations and noise statistics. Scientific computations are unchanged; the inner-radius comment and data-component output label are corrected. Model and results guidance explains the five parameters, free cluster centre, conditional uncertainties and cross-shear diagnostic; status messages corrected. Final sections explain joint strong/weak likelihoods and their assumptions, link to verified workspace examples, and close the four core chapters. All proposed chapter text is approved and applied.