1515def _fit_interferometer_from (
1616 fit : af .Fit ,
1717 instance : Optional [af .ModelInstance ] = None ,
18- real_space_mask : Optional [aa .Mask2D ] = None ,
1918 settings_inversion : aa .SettingsInversion = None ,
2019) -> List [FitInterferometer ]:
2120 """
22- Returns a list of `FitInterferometer` objects from a `PyAutoFit` sqlite database `Fit` object.
21+ Returns a list of `FitInterferometer` objects from a `PyAutoFit` loaded directory `Fit` or sqlite database `Fit` object.
2322
24- The results of a model-fit can be stored in a sqlite database, including the following attributes of the fit:
23+ The results of a model-fit can be loaded from hard-disk or stored in a sqlite database, including the following
24+ attributes of the fit:
2525
2626 - The interferometer data, noise-map, uv-wavelengths and settings as .fits files (e.g. `dataset/data.fits`).
2727 - The real space mask defining the grid of the interferometer for the FFT (`dataset/real_space_mask.fits`).
@@ -43,7 +43,8 @@ def _fit_interferometer_from(
4343 Parameters
4444 ----------
4545 fit
46- A `PyAutoFit` `Fit` object which contains the results of a model-fit as an entry in a sqlite database.
46+ A `PyAutoFit` `Fit` object which contains the results of a model-fit as an entry which has been loaded from
47+ an output directory or from an sqlite database..
4748 instance
4849 A manual instance that overwrites the max log likelihood instance in fit (e.g. for drawing the instance
4950 randomly from the PDF).
@@ -52,7 +53,6 @@ def _fit_interferometer_from(
5253 """
5354 dataset_list = _interferometer_from (
5455 fit = fit ,
55- real_space_mask = real_space_mask ,
5656 )
5757 tracer_list = _tracer_from (fit = fit , instance = instance )
5858 dataset_model_list = _dataset_model_from (fit = fit , instance = instance )
@@ -69,7 +69,6 @@ def _fit_interferometer_from(
6969 dataset_model_list ,
7070 adapt_images_list ,
7171 ):
72-
7372 fit_dataset_list .append (
7473 FitInterferometer (
7574 dataset = dataset ,
@@ -88,45 +87,44 @@ def __init__(
8887 self ,
8988 aggregator : af .Aggregator ,
9089 settings_inversion : Optional [aa .SettingsInversion ] = None ,
91- real_space_mask : Optional [aa .Mask2D ] = None ,
9290 ):
9391 """
94- Interfaces with an `PyAutoFit` aggregator object to create instances of `FitInterferometer` objects from the
95- results of a model-fit.
92+ Interfaces with an `PyAutoFit` aggregator object to create instances of `FitInterferometer` objects from the
93+ results of a model-fit.
9694
97- The results of a model-fit can be stored in a sqlite database, including the following attributes of the fit:
95+ The results of a model-fit can be loaded from hard-disk or stored in a sqlite database, including the following
96+ attributes of the fit:
9897
99- - The interferometer data, noise-map, uv-wavelengths and settings as .fits files (e.g. `dataset/data.fits`).
100- - The real space mask defining the grid of the interferometer for the FFT (`dataset/real_space_mask.fits`).
101- - The settings of inversions used by the fit (`dataset/settings_inversion.json`).
98+ - The interferometer data, noise-map, uv-wavelengths and settings as .fits files (e.g. `dataset/data.fits`).
99+ - The real space mask defining the grid of the interferometer for the FFT (`dataset/real_space_mask.fits`).
100+ - The settings of inversions used by the fit (`dataset/settings_inversion.json`).
102101
103- The `aggregator` contains the path to each of these files, and they can be loaded individually. This class
104- can load them all at once and create an `FitInterferometer` object via the `_fit_interferometer_from` method.
102+ The `aggregator` contains the path to each of these files, and they can be loaded individually. This class
103+ can load them all at once and create an `FitInterferometer` object via the `_fit_interferometer_from` method.
105104
106- This class's methods returns generators which create the instances of the `FitInterferometer` objects. This ensures
107- that large sets of results can be efficiently loaded from the hard-disk and do not require storing all
108- `FitInterferometer` instances in the memory at once.
105+ This class's methods returns generators which create the instances of the `FitInterferometer` objects. This ensures
106+ that large sets of results can be efficiently loaded from the hard-disk and do not require storing all
107+ `FitInterferometer` instances in the memory at once.
109108
110- For example, if the `aggregator` contains 3 model-fits, this class can be used to create a generator which
111- creates instances of the corresponding 3 `FitInterferometer` objects.
109+ For example, if the `aggregator` contains 3 model-fits, this class can be used to create a generator which
110+ creates instances of the corresponding 3 `FitInterferometer` objects.
112111
113- This can be done manually, but this object provides a more concise API.
112+ This can be done manually, but this object provides a more concise API.
114113
115- Parameters
116- ----------
117- aggregator
118- A `PyAutoFit` aggregator object which can load the results of model-fits.
119- settings_inversion
120- Optionally overwrite the `SettingsInversion` of the `Inversion` object that is created from the fit.
121- use_preloaded_grid
122- Certain pixelization's construct their mesh in the source-plane from a stochastic KMeans algorithm. This
123- grid may be output to hard-disk after the model-fit and loaded via the database to ensure the same grid is
124- used as the fit.
114+ Parameters
115+ ----------
116+ aggregator
117+ A `PyAutoFit` aggregator object which can load the results of model-fits.
118+ settings_inversion
119+ Optionally overwrite the `SettingsInversion` of the `Inversion` object that is created from the fit.
120+ use_preloaded_grid
121+ Certain pixelization's construct their mesh in the source-plane from a stochastic KMeans algorithm. This
122+ grid may be output to hard-disk after the model-fit and loaded via the database to ensure the same grid is
123+ used as the fit.
125124 """
126125 super ().__init__ (aggregator = aggregator )
127126
128127 self .settings_inversion = settings_inversion
129- self .real_space_mask = real_space_mask
130128
131129 def object_via_gen_from (
132130 self , fit , instance : Optional [af .ModelInstance ] = None
@@ -139,7 +137,8 @@ def object_via_gen_from(
139137 Parameters
140138 ----------
141139 fit
142- A `PyAutoFit` `Fit` object which contains the results of a model-fit as an entry in a sqlite database.
140+ A `PyAutoFit` `Fit` object which contains the results of a model-fit as an entry which has been loaded from
141+ an output directory or from an sqlite database..
143142 instance
144143 A manual instance that overwrites the max log likelihood instance in fit (e.g. for drawing the instance
145144 randomly from the PDF).
0 commit comments