From d21d2604883948520c8dd80553170672539de973 Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Tue, 18 Mar 2025 18:36:47 +0000 Subject: [PATCH 1/2] added fit fits enum --- autogalaxy/aggregator/__init__.py | 1 + autogalaxy/aggregator/subplot.py | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/autogalaxy/aggregator/__init__.py b/autogalaxy/aggregator/__init__.py index 56c0a6dc7..ca1fe51df 100644 --- a/autogalaxy/aggregator/__init__.py +++ b/autogalaxy/aggregator/__init__.py @@ -8,3 +8,4 @@ from autogalaxy.aggregator.ellipse.fit_ellipse import FitEllipseAgg from autogalaxy.aggregator.subplot import SubplotDataset as subplot_dataset from autogalaxy.aggregator.subplot import SubplotFit as subplot_fit +from autogalaxy.aggregator.subplot import FitFITS as fits_fit \ No newline at end of file diff --git a/autogalaxy/aggregator/subplot.py b/autogalaxy/aggregator/subplot.py index 72f23f11a..3005363d1 100644 --- a/autogalaxy/aggregator/subplot.py +++ b/autogalaxy/aggregator/subplot.py @@ -1,6 +1,17 @@ from enum import Enum +class FitFITS(Enum): + """ + The HDUs that can be extracted from the fit.fits file. + """ + + model_image = "MODEL_IMAGE" + residual_map = "RESIDUAL_MAP" + normalized_residual_map = "NORMALIZED_RESIDUAL_MAP" + chi_squared_map = "CHI_SQUARED_MAP" + + class SubplotDataset(Enum): """ The subplots that can be extracted from the subplot_fit image. @@ -15,7 +26,7 @@ class SubplotDataset(Enum): psf_log_10 = (1, 1) signal_to_noise_map = (2, 1) over_sample_size_lp = (0, 2) - over_sample_Size_pixelization = (1, 2) + over_sample_size_pixelization = (1, 2) class SubplotFit(Enum): From 4fbd00683a9180144d6fb0ab5b7542b9d293486f Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Tue, 18 Mar 2025 19:44:55 +0000 Subject: [PATCH 2/2] extend aggregator examples --- autogalaxy/aggregator/__init__.py | 2 +- autogalaxy/aggregator/subplot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autogalaxy/aggregator/__init__.py b/autogalaxy/aggregator/__init__.py index ca1fe51df..8ed775de6 100644 --- a/autogalaxy/aggregator/__init__.py +++ b/autogalaxy/aggregator/__init__.py @@ -8,4 +8,4 @@ from autogalaxy.aggregator.ellipse.fit_ellipse import FitEllipseAgg from autogalaxy.aggregator.subplot import SubplotDataset as subplot_dataset from autogalaxy.aggregator.subplot import SubplotFit as subplot_fit -from autogalaxy.aggregator.subplot import FitFITS as fits_fit \ No newline at end of file +from autogalaxy.aggregator.subplot import FITSFit as fits_fit diff --git a/autogalaxy/aggregator/subplot.py b/autogalaxy/aggregator/subplot.py index 3005363d1..30aa03763 100644 --- a/autogalaxy/aggregator/subplot.py +++ b/autogalaxy/aggregator/subplot.py @@ -1,7 +1,7 @@ from enum import Enum -class FitFITS(Enum): +class FITSFit(Enum): """ The HDUs that can be extracted from the fit.fits file. """