From 3354deca4f627105ccd25023cbfc4a7f797a5c4e Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Tue, 17 Nov 2026 14:06:26 +0000 Subject: [PATCH 1/2] docs: point learners to the redshifts and angles guide Adds short pointers to autolens_workspace guides/units/redshifts_and_angles.py where the question of why redshifts do not change a lensed image comes up: chapter 1 tutorials 2 and 3, and the chapter 4 cluster-scale tutorial. Refs PyAutoLabs/autolens_workspace#676 Co-Authored-By: Claude Opus 5.5 --- scripts/chapter_1_introduction/tutorial_2_ray_tracing.py | 7 +++++++ .../chapter_1_introduction/tutorial_3_more_ray_tracing.py | 8 ++++++++ .../tutorial_5_cluster_scale.py | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/scripts/chapter_1_introduction/tutorial_2_ray_tracing.py b/scripts/chapter_1_introduction/tutorial_2_ray_tracing.py index 7ad91ff..8a5fd62 100644 --- a/scripts/chapter_1_introduction/tutorial_2_ray_tracing.py +++ b/scripts/chapter_1_introduction/tutorial_2_ray_tracing.py @@ -709,6 +709,13 @@ Tutorial 3 explains the cosmological distances behind this conversion, as part of its optional mathematical discussion. +If you try changing the lens and source redshifts, you will find +the lensed image does not change at all. That is expected: our +lens is set by an angle, and only its physical size and mass +depend on the redshifts. The workspace's +[redshifts and angles guide](https://github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py) +explains why. + __More Complexity__ Our tracer currently contains one spherical lens and one source. diff --git a/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py b/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py index 4fd7d07..35426c4 100644 --- a/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py +++ b/scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py @@ -806,6 +806,14 @@ Our `IsothermalSph` profile specifies this angular scale directly through its `einstein_radius` parameter. +Because we fix the angle rather than the mass or velocity +dispersion, the distances are already absorbed into it, so +changing the redshifts changes the physical mass but not the +image. The workspace's +[redshifts and angles guide](https://github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py) +shows this with two redshift pairs, and compares it with codes +that start from a physical mass instead. + For a circular lens, the mean convergence inside the Einstein radius equals one. Its enclosed projected mass is therefore diff --git a/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py b/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py index 79ad4dc..d75310f 100644 --- a/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py +++ b/scripts/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.py @@ -395,6 +395,11 @@ quantities. Here, we use the highest source redshift consistently for the scaling members. The tracer then evaluates the lens mapping to each source's own plane; this does not place every source at that reference redshift. + +Unlike the angular `einstein_radius` we used for galaxy-scale lenses, `sigma` is a physical quantity, so here the +redshifts do change the lensed images. The workspace's +[redshifts and angles guide](https://github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py) +explains the difference between the two approaches. """ scaling_sigma_ref = af.UniformPrior(lower_limit=0.0, upper_limit=200.0) scaling_sigma_exponent = 0.25 # alpha (Faber-Jackson) From 282eb9491f27d2f2c053c5c30e993cb486e9a0fe Mon Sep 17 00:00:00 2001 From: Jammy2211 Date: Tue, 17 Nov 2026 14:09:33 +0000 Subject: [PATCH 2/2] chore: regenerate navigator catalogue Regenerated with PyAutoHands regenerate_navigator.py howtolens, as the Navigator Check requires after adding the redshifts and angles guide. Co-Authored-By: Claude Opus 5.5 --- workspace_index.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/workspace_index.json b/workspace_index.json index 4cf6800..2dfa62a 100644 --- a/workspace_index.json +++ b/workspace_index.json @@ -55,7 +55,8 @@ "Env" ], "cross_refs": [ - "//github.com/PyAutoLabs/autolens_assistant/blob/main/docs/colab/cosmos_web_ring_colab.py" + "//github.com/PyAutoLabs/autolens_assistant/blob/main/docs/colab/cosmos_web_ring_colab.py", + "//github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py" ], "notebook": "notebooks/chapter_1_introduction/tutorial_2_ray_tracing.ipynb", "path": "scripts/chapter_1_introduction/tutorial_2_ray_tracing.py", @@ -77,7 +78,9 @@ "Wrap Up", "Env" ], - "cross_refs": [], + "cross_refs": [ + "//github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py" + ], "notebook": "notebooks/chapter_1_introduction/tutorial_3_more_ray_tracing.ipynb", "path": "scripts/chapter_1_introduction/tutorial_3_more_ray_tracing.py", "summary": "In tutorial 2, we used the lens equation to trace coordinates from the image plane to the source plane and build an image of a strong lens.", @@ -620,6 +623,7 @@ "Wrap Up" ], "cross_refs": [ + "//github.com/PyAutoLabs/autolens_workspace/blob/main/scripts/guides/units/redshifts_and_angles.py", "autolens_workspace/scripts/guides/point_solver/pairing.py" ], "notebook": "notebooks/chapter_4_scaling_up_lensing/tutorial_5_cluster_scale.ipynb",