def IgnoreRegions(self, region):
        """
        Tells the fitter to ignore certain regions of the spectrum
          in the chi-squared calculation. Useful for stellar or interstellar
          lines.

        :param region:  Can be either a list of size 2 with the beginning and ending
                  wavelength range to ignore, or a list of lists giving several
                  wavelength ranges at once.
        """
        if not isinstance(region, list) and len(region) == 0:
            raise TypeError("Must give a non-empty list to TelluricFitter.IgnoreRegions")

        if isinstance(region[0], list):
            #The user gave a list of lists. Append each one to self.ignore
            for r in region:
                self.ignore.append(r)
        elif isinstance(region[0], int):
            #The user gave a single region. Append to self.ignore
            self.ignore.append(region)
        else:
            raise TypeError("Unrecognized variable type for region given in TelluricFitter.IgnoreRegions")

        return


    ### -----------------------------------------------
    ###         Main Fit Function!
    ### -----------------------------------------------
dataset/ETHPy150Open kgullikson88/Telluric-Fitter/src/TelluricFitter.py/TelluricFitter.IgnoreRegions/operator `or` -> `and`