Python rdkit.rdBase.DisableLog() Examples

The following are 3 code examples of rdkit.rdBase.DisableLog(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module rdkit.rdBase , or try the search function .
Example #1
Source File: chem.py    From reinvent-randomized with MIT License 5 votes vote down vote up
def disable_rdkit_logging():
    """
    Disables RDKit whiny logging.
    """
    import rdkit.RDLogger as rkl
    logger = rkl.logger()
    logger.setLevel(rkl.ERROR)

    import rdkit.rdBase as rkrb
    rkrb.DisableLog('rdApp.error') 
Example #2
Source File: utils.py    From moses with MIT License 5 votes vote down vote up
def disable_rdkit_log():
    rdBase.DisableLog('rdApp.*') 
Example #3
Source File: chem.py    From reinvent-scaffold-decorator with MIT License 5 votes vote down vote up
def disable_rdkit_logging():
    """
    Disables RDKit whiny logging.
    """
    import rdkit.RDLogger as rkl
    logger = rkl.logger()
    logger.setLevel(rkl.ERROR)

    import rdkit.rdBase as rkrb
    rkrb.DisableLog('rdApp.error')