Skip to content

Commit 8e9cfcf

Browse files
committed
v2023.3.21.5
1 parent fc5f04d commit 8e9cfcf

2 files changed

Lines changed: 47 additions & 38 deletions

File tree

autolens/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@
116116

117117
conf.instance.register(__file__)
118118

119-
__version__ = "2023.3.21.5"
119+
__version__ = "2023.3.27.1"

docs/general/model_cookbook.rst

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -51,38 +51,38 @@ If we print the ``info`` attribute of the model we get information on all of the
5151
This gives the following output:
5252

5353
.. code-block:: bash
54-
55-
galaxies
56-
lens
57-
redshift 0.5
58-
bulge
59-
centre
60-
centre_0 GaussianPrior, mean = 0.0, sigma = 0.3
61-
centre_1 GaussianPrior, mean = 0.0, sigma = 0.3
62-
ell_comps
63-
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.5
64-
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.5
65-
intensity LogUniformPrior, lower_limit = 1e-06, upper_limit = 1000000.0
66-
effective_radius UniformPrior, lower_limit = 0.0, upper_limit = 30.0
67-
mass
68-
centre
69-
centre_0 GaussianPrior, mean = 0.0, sigma = 0.1
70-
centre_1 GaussianPrior, mean = 0.0, sigma = 0.1
71-
ell_comps
72-
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.3
73-
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.3
74-
einstein_radius UniformPrior, lower_limit = 0.0, upper_limit = 8.0
75-
source
76-
redshift 1.0
77-
disk
78-
centre
79-
centre_0 GaussianPrior, mean = 0.0, sigma = 0.3
80-
centre_1 GaussianPrior, mean = 0.0, sigma = 0.3
81-
ell_comps
82-
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.5
83-
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.5
84-
intensity LogUniformPrior, lower_limit = 1e-06, upper_limit = 1000000.0
85-
effective_radius UniformPrior, lower_limit = 0.0, upper_limit = 30.0
54+
55+
galaxies
56+
lens
57+
redshift 0.5
58+
bulge
59+
centre
60+
centre_0 GaussianPrior, mean = 0.0, sigma = 0.3
61+
centre_1 GaussianPrior, mean = 0.0, sigma = 0.3
62+
ell_comps
63+
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.5
64+
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.5
65+
intensity LogUniformPrior, lower_limit = 1e-06, upper_limit = 1000000.0
66+
effective_radius UniformPrior, lower_limit = 0.0, upper_limit = 30.0
67+
mass
68+
centre
69+
centre_0 GaussianPrior, mean = 0.0, sigma = 0.1
70+
centre_1 GaussianPrior, mean = 0.0, sigma = 0.1
71+
ell_comps
72+
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.3
73+
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.3
74+
einstein_radius UniformPrior, lower_limit = 0.0, upper_limit = 8.0
75+
source
76+
redshift 1.0
77+
disk
78+
centre
79+
centre_0 GaussianPrior, mean = 0.0, sigma = 0.3
80+
centre_1 GaussianPrior, mean = 0.0, sigma = 0.3
81+
ell_comps
82+
ell_comps_0 GaussianPrior, mean = 0.0, sigma = 0.5
83+
ell_comps_1 GaussianPrior, mean = 0.0, sigma = 0.5
84+
intensity LogUniformPrior, lower_limit = 1e-06, upper_limit = 1000000.0
85+
effective_radius UniformPrior, lower_limit = 0.0, upper_limit = 30.0
8686
8787
More Complex Lens Models
8888
------------------------
@@ -151,8 +151,8 @@ The API can also be extended to compose lens models where there are multiple gal
151151
model = af.Collection(
152152
galaxies=af.Collection(
153153
lens_0=lens_0,
154-
lens_1=lens_1, s
155-
ource_0=source_0,
154+
lens_1=lens_1,
155+
source_0=source_0,
156156
source_1=source_1
157157
)
158158
)
@@ -224,7 +224,7 @@ We can customize the priors of the lens model component individual parameters as
224224
Model Customization
225225
-------------------
226226

227-
We can customize the lens model components parameters in a number of different ways, as shown below:
227+
We can customize the lens model parameters in a number of different ways, as shown below:
228228

229229
.. code-block:: python
230230
@@ -270,7 +270,7 @@ We can customize the lens model components parameters in a number of different w
270270
# Assert that the effective radius of the bulge is larger than that of the disk.
271271
# (Assertions can only be added at the end of model composition, after all components
272272
# have been bright together in a `Collection`.
273-
model.add_assertion(model.galaxies.bulge.effective_radius > model.galaxies.bulge.disk)
273+
model.add_assertion(model.galaxies.bulge.effective_radius > model.galaxies.disk.effective_radius)
274274
275275
# Assert that the Einstein Radius is below 3.0":
276276
model.add_assertion(model.galaxies.mass.einstein_radius < 3.0)
@@ -310,13 +310,18 @@ profiles.
310310

311311
The following example notebooks show how to compose and fit these models:
312312

313+
https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/imaging/modeling/features/multi_gaussian_expansion.ipynb
314+
https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/imaging/modeling/features/shapelets.ipynb
315+
313316
Model Linking (Advanced)
314317
------------------------
315318

316319
When performing non-linear search chaining, the inferred model of one phase can be linked to the model.
317320

318321
The following example notebooks show how to compose and fit these models:
319322

323+
https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/imaging/advanced/chaining/start_here.ipynb
324+
320325
Across Datasets (Advanced)
321326
--------------------------
322327

@@ -325,10 +330,12 @@ but certain parameters are free to vary across the datasets.
325330

326331
The following example notebooks show how to compose and fit these models:
327332

333+
https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/multi/modeling/start_here.ipynb
334+
328335
Relations (Advanced)
329336
--------------------
330337

331-
In the model above, an extra free parameter `intensity` was added for every dataset.
338+
In the model above, an extra free parameter ``intensity`` was added for every dataset.
332339

333340
With 2 datasets this did not produce a complex model, but if there are 5+ datasets one will quickly find that the
334341
model complexity increases dramatically.
@@ -338,6 +345,8 @@ datasets.
338345

339346
The following example notebooks show how to compose and fit these models:
340347

348+
https://github.com/Jammy2211/autolens_workspace/blob/release/notebooks/multi/modeling/features/wavelength_dependence.ipynb
349+
341350
PyAutoFit API
342351
-------------
343352

0 commit comments

Comments
 (0)