Skip to content

Commit 8771e6d

Browse files
Jammy2211Jammy2211
authored andcommitted
xp on cosmology input
1 parent addb7b3 commit 8771e6d

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

autolens/analysis/analysis/dataset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(
5959
Contains the adapt-images which are used to make a pixelization's mesh and regularization adapt to the
6060
reconstructed galaxy's morphology.
6161
cosmology
62-
The AstroPy Cosmology assumed for this analysis.
62+
The Cosmology assumed for this analysis.
6363
settings_inversion
6464
Settings controlling how an inversion is fitted during the model-fit, for example which linear algebra
6565
formalism is used.

autolens/analysis/analysis/lens.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(
4040
cosmology
4141
The Cosmology assumed for this analysis.
4242
"""
43-
from autogalaxy.cosmology.wrap import Planck15
43+
from autogalaxy.cosmology.model import Planck15
4444

4545
self.cosmology = cosmology or Planck15()
4646
self.positions_likelihood_list = positions_likelihood_list

autolens/lens/tracer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ def traced_grid_2d_list_from(
231231
returned list of traced grids will contain three entries corresponding to the input grid after ray-tracing to
232232
redshifts 0.5, 1.0 and 2.0.
233233
234-
An input `AstroPy` cosmology object can change the cosmological model, which is used to compute the scaling
234+
An input cosmology object can change the cosmological model, which is used to compute the scaling
235235
factors between planes (which are derived from their redshifts and angular diameter distances). It is these
236236
scaling factors that account for multi-plane ray tracing effects.
237237
@@ -308,7 +308,7 @@ def grid_2d_at_redshift_from(
308308
at a set of redshift. The galaxy mass profiles are used to compute deflection angles. Any redshift can be input
309309
even if a plane does not exist there, including redshifts before the first plane of the lens system.
310310
311-
An input `AstroPy` cosmology object can change the cosmological model, which is used to compute the scaling
311+
An input cosmology object can change the cosmological model, which is used to compute the scaling
312312
factors between planes (which are derived from their redshifts and angular diameter distances). It is these
313313
scaling factors that account for multi-plane ray tracing effects.
314314

autolens/lens/tracer_util.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def traced_grid_2d_list_from(
106106
returned list of traced grids will contain three entries corresponding to the input grid after ray-tracing to
107107
redshifts 0.5, 1.0 and 2.0.
108108
109-
An input `AstroPy` cosmology object can change the cosmological model, which is used to compute the scaling
109+
An input cosmology object can change the cosmological model, which is used to compute the scaling
110110
factors between planes (which are derived from their redshifts and angular diameter distances). It is these
111111
scaling factors that account for multi-plane ray tracing effects.
112112
@@ -152,6 +152,7 @@ def traced_grid_2d_list_from(
152152
redshift_0=redshift_list[previous_plane_index],
153153
redshift_1=galaxies[0].redshift,
154154
redshift_final=redshift_list[-1],
155+
xp=xp
155156
)
156157

157158
scaled_deflections = (
@@ -193,7 +194,7 @@ def grid_2d_at_redshift_from(
193194
at a set of redshift. The galaxy mass profiles are used to compute deflection angles. Any redshift can be input
194195
even if a plane does not exist there, including redshifts before the first plane of the lens system.
195196
196-
An input `AstroPy` cosmology object can change the cosmological model, which is used to compute the scaling
197+
An input cosmology object can change the cosmological model, which is used to compute the scaling
197198
factors between planes (which are derived from their redshifts and angular diameter distances). It is these
198199
scaling factors that account for multi-plane ray tracing effects.
199200
@@ -294,7 +295,7 @@ def time_delays_from(
294295
295296
The time delay is computed using the Fermat potential,
296297
297-
An input `AstroPy` cosmology object can change the cosmological model, which is used to compute the scaling
298+
An input cosmology object can change the cosmological model, which is used to compute the scaling
298299
factors between planes (which are derived from their redshifts and angular diameter distances). It is these
299300
scaling factors that account for multi-plane ray tracing effects.
300301

0 commit comments

Comments
 (0)