def __init__(self, phase_name, tag_phases=True, phase_folders=None, optimizer_class=non_linear.MultiNest,<EOL>sub_grid_size=<NUM_LIT:2>, bin_up_factor=None, image_psf_shape=None,<EOL>inversion_psf_shape=None, positions_threshold=None, mask_function=None, inner_mask_radii=None,<EOL>interp_pixel_scale=None, cosmology=cosmo.Planck15, auto_link_priors=False):
if tag_phases:<EOL><INDENT>phase_tag = tag.phase_tag_from_phase_settings(sub_grid_size=sub_grid_size,<EOL>bin_up_factor=bin_up_factor,<EOL>image_psf_shape=image_psf_shape,<EOL>inversion_psf_shape=inversion_psf_shape,<EOL>positions_threshold=positions_threshold,<EOL>inner_mask_radii=inner_mask_radii,<EOL>interp_pixel_scale=interp_pixel_scale)<EOL><DEDENT>else:<EOL><INDENT>phase_tag = None<EOL><DEDENT>super(PhaseImaging, self).__init__(phase_name=phase_name, phase_tag=phase_tag, phase_folders=phase_folders,<EOL>tag_phases=tag_phases,<EOL>optimizer_class=optimizer_class, cosmology=cosmology,<EOL>auto_link_priors=auto_link_priors)<EOL>self.sub_grid_size = sub_grid_size<EOL>self.bin_up_factor = bin_up_factor<EOL>self.image_psf_shape = image_psf_shape<EOL>self.inversion_psf_shape = inversion_psf_shape<EOL>self.positions_threshold = positions_threshold<EOL>self.mask_function = mask_function<EOL>self.inner_mask_radii = inner_mask_radii<EOL>self.interp_pixel_scale = interp_pixel_scale<EOL>
A phase in an lens pipeline. Uses the set non_linear optimizer to try to fit models and hyper
passed to it.

Parameters
----------
optimizer_class: class
    The class of a non_linear optimizer
sub_grid_size: int
    The side length of the subgrid