(self, key)
Deleting an element in the object.

        Parameters
        ----------
        key: object
            Key for deleting. Should not be one of the critical information:
            ['select_index', 'queried_info', 'performance', 'cost']
Deleting an element in the object.
Deleting an element in the object .
def del_element(self, key):
        """Deleting an element in the object.

        Parameters
        ----------
        key: object
            Key for deleting. Should not be one of the critical information:
            ['select_index', 'queried_info', 'performance', 'cost']
        """
        if key in ['select_index', 'queried_info', 'performance', 'cost']:
            warnings.warn("Critical information %s can not be discarded." % str(key),
                          category=ValidityWarning)
        elif key not in self._save_seq.keys():
            warnings.warn("Key %s to be discarded is not in the object, skip." % str(key),
                          category=ValidityWarning)
        else:
            self._save_seq.pop(key)
def del_element ( self , key ) : if key in [ 'select_index' , 'queried_info' , 'performance' , 'cost' ] : warnings . warn ( "Critical information %s can not be discarded." % str ( key ) , category = ValidityWarning ) elif key not in self . _save_seq . keys ( ) : warnings . warn ( "Key %s to be discarded is not in the object, skip." % str ( key ) , category = ValidityWarning ) else : self . _save_seq . pop ( key )