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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
RectangularBilinearAdaptDensity:
shape_0:
type: Uniform
lower_limit: 20.0
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
limits:
lower: 3.0
upper: inf
shape_1:
type: Uniform
lower_limit: 20.0
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
limits:
lower: 3.0
upper: inf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
RectangularBilinearAdaptImage:
shape_0:
type: Uniform
lower_limit: 20.0
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
limits:
lower: 3.0
upper: inf
shape_1:
type: Uniform
lower_limit: 20.0
upper_limit: 45.0
width_modifier:
type: Absolute
value: 8.0
limits:
lower: 3.0
upper: inf
weight_power:
type : Uniform
lower_limit: 0.0
upper_limit: 10.0
width_modifier:
type: Absolute
value: 2.0
limits:
lower: -100.0
upper: 100.0
weight_floor:
type: LogUniform
lower_limit: 0.00001
upper_limit: 1.0
width_modifier:
type: Absolute
limits:
lower: 0.0
upper: inf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RectangularAdaptDensity:
RectangularRTUAdaptDensity:
shape_0:
type: Uniform
lower_limit: 20.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RectangularAdaptImage:
RectangularRTUAdaptImage:
shape_0:
type: Uniform
lower_limit: 20.0
Expand Down
2 changes: 1 addition & 1 deletion autogalaxy/exc.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,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 @@ -49,7 +49,10 @@ Mesh [ag.mesh]
:template: custom-class-template.rst
:recursive:

RectangularAdaptDensity
RectangularBilinearAdaptDensity
RectangularBilinearAdaptImage
RectangularRTUAdaptDensity
RectangularRTUAdaptImage
Delaunay

Regularization [ag.reg]
Expand Down
24 changes: 18 additions & 6 deletions test_autogalaxy/profiles/config/summary/priors/pixelizations.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"rectangular.RectangularAdaptDensity": {
"Voronoi": {
"pixels": {
"type": "Uniform",
"lower_limit": 0.0,
"upper_limit": 1.0
}
},
"rectangular_bilinear_adapt_density.RectangularBilinearAdaptDensity": {
"shape_0": {
"type": "Uniform",
"lower_limit": 10.0,
Expand All @@ -11,11 +18,16 @@
"upper_limit": 30.0
}
},
"Voronoi": {
"pixels": {
"rectangular_rtu_adapt_density.RectangularRTUAdaptDensity": {
"shape_0": {
"type": "Uniform",
"lower_limit": 0.0,
"upper_limit": 1.0
"lower_limit": 10.0,
"upper_limit": 30.0
},
"shape_1": {
"type": "Uniform",
"lower_limit": 10.0,
"upper_limit": 30.0
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"rectangular.RectangularAdaptDensity": {
"Voronoi": {
"pixels": {
"type": "Uniform",
"lower_limit": 0.0,
"upper_limit": 1.0
}
},
"rectangular_bilinear_adapt_density.RectangularBilinearAdaptDensity": {
"shape_0": {
"type": "Uniform",
"lower_limit": 10.0,
Expand All @@ -11,11 +18,16 @@
"upper_limit": 30.0
}
},
"Voronoi": {
"pixels": {
"rectangular_rtu_adapt_density.RectangularRTUAdaptDensity": {
"shape_0": {
"type": "Uniform",
"lower_limit": 0.0,
"upper_limit": 1.0
"lower_limit": 10.0,
"upper_limit": 30.0
},
"shape_1": {
"type": "Uniform",
"lower_limit": 10.0,
"upper_limit": 30.0
}
}
}
}
Loading