def freeze(self, pars=None, prefix=None, freeze_cont=True, unfreeze=False):
    "Freezes the current params, so you can still add to the\n            model but the 'old' parameters will not change\n\n        Args:\n            prefix (str): Prefix of parameters to freeze, default: None, example: 'Telluric'\n            freeze_cont (bool): Freeze the continuum or not, default: True\n            unfreeze (bool): unfreezes all parameters except x values of\n                spline anchors, default=False\n\n        "
    if (pars is None):
        pars = self.all_pars
    if (unfreeze is False):
        if prefix:
            for par in pars:
                if (prefix in par):
                    pars[par].set(vary=False)
        else:
            for par in pars:
                pars[par].set(vary=False)
        if (not freeze_cont):
            for par in pars:
                if ('y_' in par):
                    pars[par].set(vary=True)
    if (unfreeze is True):
        for par in pars:
            if ('y_' in par):
                pars[par].set(vary=True)
            if (('Telluric' in par) and (par[(- 2):] != '_b')):
                pars[par].set(vary=True)
            pars['Telluric_b'].set(vary=True)
            if (('Nontelluric' in par) and (par[(- 2):] != '_d')):
                pars[par].set(vary=True)
Freezes the current params, so you can still add to the
    model but the 'old' parameters will not change

Args:
    prefix (str): Prefix of parameters to freeze, default: None, example: 'Telluric'
    freeze_cont (bool): Freeze the continuum or not, default: True
    unfreeze (bool): unfreezes all parameters except x values of
        spline anchors, default=False
def freeze(self, pars=None, prefix=None, freeze_cont=True, unfreeze=False):
    "Freezes the current params, so you can still add to the\n            model but the 'old' parameters will not change\n\n        Args:\n            prefix (str): Prefix of parameters to freeze, default: None, example: 'Telluric'\n            freeze_cont (bool): Freeze the continuum or not, default: True\n            unfreeze (bool): unfreezes all parameters except x values of\n                spline anchors, default=False\n\n        "
    if (pars is None):
        pars = self.all_pars
    if (unfreeze is False):
        if prefix:
            for par in pars:
                if (prefix in par):
                    pars[par].set(vary=False)
        else:
            for par in pars:
                pars[par].set(vary=False)
        if (not freeze_cont):
            for par in pars:
                if ('y_' in par):
                    pars[par].set(vary=True)
    if (unfreeze is True):
        for par in pars:
            if ('y_' in par):
                pars[par].set(vary=True)
            if (('Telluric' in par) and (par[(- 2):] != '_b')):
                pars[par].set(vary=True)
            pars['Telluric_b'].set(vary=True)
            if (('Nontelluric' in par) and (par[(- 2):] != '_d')):
                pars[par].set(vary=True)