Skip to content

Commit

Permalink
Merge pull request #212 from Jammy2211/feature/inversion_noise_map
Browse files Browse the repository at this point in the history
errors -> reconstruction_noise_map
  • Loading branch information
Jammy2211 authored Nov 20, 2024
2 parents 2f33282 + 791b4e1 commit f731ab4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
6 changes: 3 additions & 3 deletions autogalaxy/analysis/plotter_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def should_plot(name):
reconstructed_image=should_plot("reconstructed_image"),
reconstruction=should_plot("reconstruction"),
mesh_pixels_per_image_pixels=should_plot("mesh_pixels_per_image_pixels"),
errors=should_plot("errors"),
reconstruction_noise_map=should_plot("reconstruction_noise_map"),
regularization_weights=should_plot("regularization_weights"),
)

Expand Down Expand Up @@ -347,7 +347,7 @@ def should_plot(name):
pixelization_index=0,
reconstructed_image=True,
reconstruction=True,
errors=True,
reconstruction_noise_map=True,
regularization_weights=True,
)

Expand All @@ -366,7 +366,7 @@ def should_plot(name):
pixelization_index=0,
reconstructed_image=True,
reconstruction=True,
errors=True,
reconstruction_noise_map=True,
regularization_weights=True,
interpolate_to_uniform=True,
)
Expand Down
6 changes: 3 additions & 3 deletions autogalaxy/config/visualize/plots.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ inversion: # Settings for plots of inversions (e
all_at_end_fits: true # Plot all individual plots listed below as .fits (even if False)?
all_at_end_pdf: false # Plot all individual plots listed below as publication-quality .pdf (even if False)?
data_subtracted: false # Plot individual plots of the data with the other inversion linear objects subtracted?
errors: false # Plot image of the errors of every mesh-pixel reconstructed value?
sub_pixels_per_image_pixels: false # Plot the number of sub pixels per masked data pixels?
mesh_pixels_per_image_pixels: false # Plot the number of image-plane mesh pixels per masked data pixels?
reconstruction_noise_map: false # Plot image of the noise of every mesh-pixel reconstructed value?
sub_pixels_per_image_pixels: false # Plot the number of sub pixels per masked data pixels?
mesh_pixels_per_image_pixels: false # Plot the number of image-plane mesh pixels per masked data pixels?
reconstructed_image: false # Plot image of the reconstructed data (e.g. in the image-plane)?
reconstruction: false # Plot the reconstructed inversion (e.g. the pixelization's mesh in the source-plane)?
regularization_weights: false # Plot the effective regularization weight of every inversion mesh pixel?
Expand Down
5 changes: 4 additions & 1 deletion test_autogalaxy/analysis/test_plotter_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ def test__inversion(

assert path.join(plot_path, "reconstructed_image.png") in plot_patch.paths
assert path.join(plot_path, "reconstruction.png") in plot_patch.paths
assert path.join(plot_path, "inversion", "errors.png") not in plot_patch.paths
assert (
path.join(plot_path, "inversion", "reconstruction_noise_map.png")
not in plot_patch.paths
)
assert path.join(plot_path, "regularization_weights.png") not in plot_patch.paths


Expand Down
2 changes: 1 addition & 1 deletion test_autogalaxy/config/visualize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ plots:
inversion:
all_at_end_png: false
chi_squared_map: true
errors: false
reconstruction_noise_map: false
interpolated_errors: true
interpolated_reconstruction: true
normalized_residual_map: false
Expand Down
2 changes: 1 addition & 1 deletion test_autogalaxy/plot/mat_wrap/config/visualize/plots.ini
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ all_at_end_png=False
subplot_inversion=True
reconstructed_image=False
reconstruction=False
errors=False
reconstruction_noise_map=False
residual_map=False
normalized_residual_map=False
chi_squared_map=False
Expand Down

0 comments on commit f731ab4

Please sign in to comment.