1616def _fit_imaging_from (
1717 fit : af .Fit ,
1818 instance : Optional [af .ModelInstance ] = None ,
19- settings_inversion : aa .SettingsInversion = None ,
19+ settings : aa .Settings = None ,
2020) -> List [FitImaging ]:
2121 """
2222 Returns a list of `FitImaging` objects from a `PyAutoFit` loaded directory `Fit` or sqlite database `Fit` object.
@@ -26,7 +26,7 @@ def _fit_imaging_from(
2626
2727 - The imaging data, noise-map, PSF and settings as .fits files (e.g. `dataset/data.fits`).
2828 - The mask used to mask the `Imaging` data structure in the fit (`dataset.fits[hdu=0]`).
29- - The settings of inversions used by the fit (`dataset/settings_inversion .json`).
29+ - The settings of inversions used by the fit (`dataset/settings .json`).
3030
3131 Each individual attribute can be loaded from the database via the `fit.value()` method.
3232
@@ -37,7 +37,7 @@ def _fit_imaging_from(
3737 is instead used to load lists of the data, noise-map, PSF and mask and combine them into a list of
3838 `FitImaging` objects.
3939
40- The settings of an inversion can be overwritten by inputting a `settings_inversion ` object, for example
40+ The settings of an inversion can be overwritten by inputting a `settings ` object, for example
4141 if you want to use a grid with a different inversion solver.
4242
4343 Parameters
@@ -48,8 +48,8 @@ def _fit_imaging_from(
4848 instance
4949 A manual instance that overwrites the max log likelihood instance in fit (e.g. for drawing the instance
5050 randomly from the PDF).
51- settings_inversion
52- Optionally overwrite the `SettingsInversion ` of the `Inversion` object that is created from the fit.
51+ settings
52+ Optionally overwrite the `Settings ` of the `Inversion` object that is created from the fit.
5353 """
5454
5555 from autogalaxy .imaging .fit_imaging import FitImaging
@@ -62,7 +62,7 @@ def _fit_imaging_from(
6262
6363 adapt_images_list = agg_util .adapt_images_from (fit = fit )
6464
65- settings_inversion = settings_inversion or fit .value (name = "settings_inversion " )
65+ settings = settings or fit .value (name = "settings " )
6666
6767 fit_dataset_list = []
6868
@@ -79,7 +79,7 @@ def _fit_imaging_from(
7979 galaxies = galaxies ,
8080 dataset_model = dataset_model ,
8181 adapt_images = adapt_images ,
82- settings_inversion = settings_inversion ,
82+ settings = settings ,
8383 )
8484 )
8585
@@ -90,7 +90,7 @@ class FitImagingAgg(af.AggBase):
9090 def __init__ (
9191 self ,
9292 aggregator : af .Aggregator ,
93- settings_inversion : Optional [aa .SettingsInversion ] = None ,
93+ settings : Optional [aa .Settings ] = None ,
9494 ):
9595 """
9696 Interfaces with an `PyAutoFit` aggregator object to create instances of `FitImaging` objects from the results
@@ -101,7 +101,7 @@ def __init__(
101101
102102 - The imaging data, noise-map, PSF and settings as .fits files (e.g. `dataset/data.fits`).
103103 - The mask used to mask the `Imaging` data structure in the fit (`dataset.fits[hdu=0]`).
104- - The settings of inversions used by the fit (`dataset/settings_inversion .json`).
104+ - The settings of inversions used by the fit (`dataset/settings .json`).
105105
106106 The `aggregator` contains the path to each of these files, and they can be loaded individually. This class
107107 can load them all at once and create an `FitImaging` object via the `_fit_imaging_from` method.
@@ -123,19 +123,19 @@ def __init__(
123123 ----------
124124 aggregator
125125 A `PyAutoFit` aggregator object which can load the results of model-fits.
126- settings_inversion
127- Optionally overwrite the `SettingsInversion ` of the `Inversion` object that is created from the fit.
126+ settings
127+ Optionally overwrite the `Settings ` of the `Inversion` object that is created from the fit.
128128
129129 Parameters
130130 ----------
131131 aggregator
132132 A `PyAutoFit` aggregator object which can load the results of model-fits.
133- settings_inversion
134- Optionally overwrite the `SettingsInversion ` of the `Inversion` object that is created from the fit.
133+ settings
134+ Optionally overwrite the `Settings ` of the `Inversion` object that is created from the fit.
135135 """
136136 super ().__init__ (aggregator = aggregator )
137137
138- self .settings_inversion = settings_inversion
138+ self .settings = settings
139139
140140 def object_via_gen_from (
141141 self , fit , instance : Optional [af .ModelInstance ] = None
@@ -157,5 +157,5 @@ def object_via_gen_from(
157157 return _fit_imaging_from (
158158 fit = fit ,
159159 instance = instance ,
160- settings_inversion = self .settings_inversion ,
160+ settings = self .settings ,
161161 )
0 commit comments