def __call__(self, filename):
        # We only want the PGM files:
        
        filetype = filename[-4:]
        if filetype != ".pgm":
            return False

        # There are "Ambient" PGM files, ignore them:
        if "Ambient" in filename:
            return False
        
        azimuth = int(filename[12:16])
        elevation = int(filename[17:20])

        # Now filter based on angles:
        if azimuth < self._min_azimuth and azimuth > self._max_azimuth:
            return False
        if elevation < self._min_elevation or elevation > self._max_elevation:
            return False
            
        return True
dataset/ETHPy150Open bytefish/facerec/py/apps/scripts/preprocessing_experiments.py/YaleBaseFilter.__call__/operator `or` -> `and`