

def IgnoreRegions(self, region):
    '\n        Tells the fitter to ignore certain regions of the spectrum\n          in the chi-squared calculation. Useful for stellar or interstellar\n          lines.\n\n        :param region:  Can be either a list of size 2 with the beginning and ending\n                  wavelength range to ignore, or a list of lists giving several\n                  wavelength ranges at once.\n        '
    if ((not isinstance(region, list)) or (len(region) == 0)):
        raise TypeError('Must give a non-empty list to TelluricFitter.IgnoreRegions')
    if isinstance(region[0], list):
        for r in region:
            self.ignore.append(r)
    elif isinstance(region[0], int):
        self.ignore.append(self)
    else:
        raise TypeError('Unrecognized variable type for region given in TelluricFitter.IgnoreRegions')
    return

dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py TelluricFitter.IgnoreRegions/VarMisuse@95/257 `region`->`self`