def polygon_filter_rm(self, filt):
        """Remove a polygon filter from this instance

        Parameters
        ----------
        filt: int or instance of `PolygonFilter`
            The polygon filter to remove
        """
        if not isinstance(filt, (PolygonFilter, int, float)):
            msg = "`filt` must be a number or instance of PolygonFilter!"
            raise ValueError(msg)

        if isinstance(filt, PolygonFilter):
            uid = filt.unique_id
        else:
            uid = int(filt)
        # remove item
        self.config["filtering"]["polygon filters"].remove(uid)
def polygon_filter_rm ( self , filt ) : if not isinstance ( filt , ( PolygonFilter , int , float ) ) : msg = "`filt` must be a number or instance of PolygonFilter!" raise ValueError ( msg ) if isinstance ( filt , PolygonFilter ) : uid = filt . unique_id else : uid = int ( filt ) self . config [ "filtering" ] [ "polygon filters" ] . remove ( uid )
Remove a polygon filter from this instance

        Parameters
        ----------
        filt: int or instance of `PolygonFilter`
            The polygon filter to remove