pegasusio/multimodal_data.py
def scan_black_list(self, black_list: Set[str] = None):
        """ Remove unwanted keys in the black list
            Note: black_list might be changed.
        """
        if black_list is None:
            return None

        def _check_reserved_keyword(black_list: Set[str], keyword: str):
            if keyword in black_list:
                logger.warning("Removed reserved keyword '{}' from black list.".format(keyword))
                black_list.remove(keyword)

        _check_reserved_keyword(black_list, "genome")
        _check_reserved_keyword(black_list, "modality")

        for key in self.data:
            self.data[key].scan_black_list(black_list)
 Remove unwanted keys in the black list
            Note: black_list might be changed.
        
Remove unwanted keys in the black list
Note: black_list might be changed.
Remove unwanted keys in the black list Note : black_list might be changed .
def scan_black_list(self, black_list: Set[str] = None):
        if black_list is None:
            return None
        def _check_reserved_keyword(black_list: Set[str], keyword: str):
            if keyword in black_list:
                logger.warning("Removed reserved keyword '{}' from black list.".format(keyword))
                black_list.remove(keyword)
        _check_reserved_keyword(black_list, "genome")
        _check_reserved_keyword(black_list, "modality")
        for key in self.data:
            self.data[key].scan_black_list(black_list)
def scan_black_list ( self , black_list : Set [ str ] = None ) : if black_list is None : return None def _check_reserved_keyword ( black_list : Set [ str ] , keyword : str ) : if keyword in black_list : logger . warning ( "Removed reserved keyword '{}' from black list." . format ( keyword ) ) black_list . remove ( keyword ) _check_reserved_keyword ( black_list , "genome" ) _check_reserved_keyword ( black_list , "modality" ) for key in self . data : self . data [ key ] . scan_black_list ( black_list )
Remove unwanted keys in the black list
Note: black_list might be changed.
Remove unwanted keys in the black list Note : black_list might be changed .
""" Remove unwanted keys in the black list
            Note: black_list might be changed.
        """
self
black_list
Set[str]