Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion autolens/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PixelizationException(af.exc.FitException):
"""
Raises exceptions associated with the `inversion/pixelization` modules and `Pixelization` classes.

For example if a `RectangularAdaptDensity` mesh has dimensions below 3x3.
For example if a `RectangularRTUAdaptDensity` mesh has dimensions below 3x3.

This exception overwrites `autoarray.exc.PixelizationException` in order to add a `FitException`. This means that
if this exception is raised during a model-fit in the analysis class's `log_likelihood_function` that model
Expand Down
5 changes: 4 additions & 1 deletion docs/api/pixelization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ Mesh [ag.mesh]
:template: custom-class-template.rst
:recursive:

RectangularAdaptDensity
RectangularBilinearAdaptDensity
RectangularBilinearAdaptImage
RectangularRTUAdaptDensity
RectangularRTUAdaptImage
Delaunay

Regularization [ag.reg]
Expand Down
43 changes: 22 additions & 21 deletions test_autolens/config/priors/pixelizations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,6 @@ delaunay.DelaunayMagnification:
width_modifier:
type: Absolute
value: 8.0
rectangular.RectangularAdaptDensity:
shape_0:
limits:
lower: 3.0
upper: inf
lower_limit: 20.0
type: Uniform
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
shape_1:
limits:
lower: 3.0
upper: inf
lower_limit: 20.0
type: Uniform
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
voronoi.VoronoiBrightnessImage:
pixels:
limits:
Expand Down Expand Up @@ -123,3 +102,25 @@ voronoi.VoronoiMagnification:
width_modifier:
type: Absolute
value: 8.0
rectangular_bilinear_adapt_density.RectangularBilinearAdaptDensity: &id001
shape_0:
limits:
lower: 3.0
upper: inf
lower_limit: 20.0
type: Uniform
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
shape_1:
limits:
lower: 3.0
upper: inf
lower_limit: 20.0
type: Uniform
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
rectangular_rtu_adapt_density.RectangularRTUAdaptDensity: *id001
Loading