def make_object_for_gen(self, fit, galaxies) -> FitImaging:
    '\n        Creates a `FitImaging` object from a `ModelInstance` that contains the galaxies of a sample from a non-linear\n        search.\n\n        Parameters\n        ----------\n        fit\n            A PyAutoFit database Fit object containing the generators of the results of PyAutoGalaxy model-fits.\n        galaxies\n            A list of galaxies corresponding to a sample of a non-linear search and model-fit.\n\n        Returns\n        -------\n        FitImaging\n            A fit to imaging data whose galaxies are a sample of a PyAutoFit non-linear search.\n        '
    return _fit_imaging_from(fit=fit, galaxies=galaxies, settings_imaging=self.settings_imaging, settings_pixelization=self.settings_pixelization, settings_inversion=self.settings_inversion, use_preloaded_grid=self.use_preloaded_grid, use_hyper_scaling=self.use_hyper_scaling)
Creates a `FitImaging` object from a `ModelInstance` that contains the galaxies of a sample from a non-linear
search.

Parameters
----------
fit
    A PyAutoFit database Fit object containing the generators of the results of PyAutoGalaxy model-fits.
galaxies
    A list of galaxies corresponding to a sample of a non-linear search and model-fit.

Returns
-------
FitImaging
    A fit to imaging data whose galaxies are a sample of a PyAutoFit non-linear search.
def make_object_for_gen(self, fit, galaxies) -> FitImaging:
    '\n        Creates a `FitImaging` object from a `ModelInstance` that contains the galaxies of a sample from a non-linear\n        search.\n\n        Parameters\n        ----------\n        fit\n            A PyAutoFit database Fit object containing the generators of the results of PyAutoGalaxy model-fits.\n        galaxies\n            A list of galaxies corresponding to a sample of a non-linear search and model-fit.\n\n        Returns\n        -------\n        FitImaging\n            A fit to imaging data whose galaxies are a sample of a PyAutoFit non-linear search.\n        '
    return _fit_imaging_from(fit=fit, galaxies=galaxies, settings_imaging=self.settings_imaging, settings_pixelization=self.settings_pixelization, settings_inversion=self.settings_inversion, use_preloaded_grid=self.use_preloaded_grid, use_hyper_scaling=self.use_hyper_scaling)