def FitVariable(self, vardict):
        for par in vardict.keys():
            try:
                idx = self.parnames.index(par)
                if par in ['wavestart', 'waveend'] and isinstance(vardict[par], u.quantity.Quantity):
                    # Convert to nanometers
                    vardict[par] = vardict[par].to(u.nm).value
                self.const_pars[idx] = vardict[par]
                self.fitting[idx] = True
            except ValueError:
                print("Error! Bad parameter name given. Currently available are: ")
                self.DisplayVariables()
                raise ValueError


            ### -----------------------------------------------
Add one or more variables to the list being fit.
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py/TelluricFitter.FitVariable