def __init__(self, galaxy_data, mask, sub_grid_size=<NUM_LIT:2>, use_intensities=False, use_convergence=False,<EOL>use_potential=False, use_deflections_y=False, use_deflections_x=False):
self.image = galaxy_data.image<EOL>self.pixel_scale = galaxy_data.pixel_scale<EOL>self.noise_map = galaxy_data.noise_map<EOL>self.mask = mask<EOL>self.image_1d = mask.map_2d_array_to_masked_1d_array(array_2d=self.image)<EOL>self.noise_map_1d = mask.map_2d_array_to_masked_1d_array(array_2d=self.noise_map)<EOL>self.mask_1d = mask.map_2d_array_to_masked_1d_array(array_2d=mask)<EOL>self.sub_grid_size = sub_grid_size<EOL>self.grid_stack = grids.GridStack.grid_stack_from_mask_sub_grid_size_and_psf_shape(mask=mask,<EOL>sub_grid_size=sub_grid_size,<EOL>psf_shape=(<NUM_LIT:1>, <NUM_LIT:1>))<EOL>self.padded_grid_stack = grids.GridStack.padded_grid_stack_from_mask_sub_grid_size_and_psf_shape(<EOL>mask=mask, sub_grid_size=sub_grid_size, psf_shape=(<NUM_LIT:1>, <NUM_LIT:1>))<EOL>if all(not element for element in [use_intensities, use_convergence, use_potential,<EOL>use_deflections_y, use_deflections_x]):<EOL><INDENT>raise exc.GalaxyException('<STR_LIT>')<EOL><DEDENT>if sum([use_intensities, use_convergence, use_potential, use_deflections_y, use_deflections_x]) > <NUM_LIT:1>:<EOL><INDENT>raise exc.GalaxyException('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>self.use_intensities = use_intensities<EOL>self.use_convergence = use_convergence<EOL>self.use_potential = use_potential<EOL>self.use_deflections_y = use_deflections_y<EOL>self.use_deflections_x = use_deflections_x<EOL>
A galaxy-fit data is a collection of fit data components which are used to fit a galaxy to another galaxy. \
        This is where a component of a galaxy's light profiles (e.g. intensities) or mass profiles (e.g. surface \
        density, potential or deflection angles) are fitted to one another.

        This is primarily performed for automatic prior linking, as a means to efficiently link the priors of a galaxy \
        using one inferred parametrization of light or mass profiles to a new galaxy with a different parametrization \
        of light or mass profiles.

        This omits a number of the fit data components typically used when fitting an image (e.g. the observed image, PSF, \
        exposure time map), but still has a number of the other components (e.g. an effective noise_map-map, grid_stacks).

        Parameters
        ----------
        galaxy_data : GalaxyData
            The collection of data about the galaxy (image of its profile map, noise-map, etc.) that is fitted.
        mask: msk.Mask
            The 2D masks that is applied to image fit data.
        sub_grid_size : int
            The size of the sub-grid used for computing the SubGrid (see ccd.masks.SubGrid).

        Attributes
        ----------
        noise_map_1d : ndarray
            The masked 1D array of the noise_map-map
        grid_stacks : ccd.masks.GridStack
            Grids of (y,x) Cartesian coordinates which map over the masked 1D fit data array's pixels (includes an \
            regular-grid, sub-grid, etc.)
        padded_grid_stack : ccd.masks.GridStack
            Grids of padded (y,x) Cartesian coordinates which map over the every fit data array's pixel in 1D and a \
            padded regioon to include edge's for accurate PSF convolution (includes an regular-grid, sub-grid, etc.)