def __init__(self, phase_name, tag_phases=True, phase_tag=None, phase_folders=None,
                 optimizer_class=non_linear.MultiNest, auto_link_priors=False):
        """
        A phase in an lensing pipeline. Uses the set non_linear optimizer to try to fit_normal models and image
        passed to it.

        Parameters
        ----------
        optimizer_class: class
            The class of a non_linear optimizer
        phase_name: str
            The name of this phase
        """

        self.tag_phases = tag_phases

        self.phase_folders = phase_folders
        if phase_folders is None:
            self.phase_path = ''
        else:
            self.phase_path = path_util.path_from_folder_names(folder_names=phase_folders)

        if phase_tag is None and tag_phases:
            self.phase_tag = ''
        else:
            self.phase_tag = phase_tag

        self.phase_name = phase_name
        self.optimizer = optimizer_class(phase_name=self.phase_name, phase_tag=phase_tag,
                                         phase_folders=self.phase_folders)
        self.auto_link_priors = auto_link_priors
def __init__ ( self , phase_name , tag_phases = True , phase_tag = None , phase_folders = None , optimizer_class = non_linear . MultiNest , auto_link_priors = False ) : self . tag_phases = tag_phases self . phase_folders = phase_folders if phase_folders is None : self . phase_path = '' else : self . phase_path = path_util . path_from_folder_names ( folder_names = phase_folders ) if phase_tag is None and tag_phases : self . phase_tag = '' else : self . phase_tag = phase_tag self . phase_name = phase_name self . optimizer = optimizer_class ( phase_name = self . phase_name , phase_tag = phase_tag , phase_folders = self . phase_folders ) self . auto_link_priors = auto_link_priors
A phase in an lensing pipeline. Uses the set non_linear optimizer to try to fit_normal models and image
        passed to it.

        Parameters
        ----------
        optimizer_class: class
            The class of a non_linear optimizer
        phase_name: str
            The name of this phase