src/dirbs/cli/classify.py
def _perform_sanity_checks(config, extra_metadata):
    """
    Method to perform sanity checks on current classification run.

    :param config: dirbs config instance
    :param extra_metadata: job extra metadata dict obj
    :return: bool (true/false)
    """
    curr_conditions = [c.as_dict() for c in config.conditions]
    curr_operators = [op.as_dict() for op in config.region_config.operators]
    curr_amnesty = config.amnesty_config.as_dict()

    if curr_conditions == extra_metadata['conditions'] and \
            curr_operators == extra_metadata['operators'] and \
            curr_amnesty == extra_metadata['amnesty']:
        return True
    return False

    Method to perform sanity checks on current classification run.

    :param config: dirbs config instance
    :param extra_metadata: job extra metadata dict obj
    :return: bool (true/false)
    
Method to perform sanity checks on current classification run.
Method to perform sanity checks on current classification run .
def _perform_sanity_checks(config, extra_metadata):
    curr_conditions = [c.as_dict() for c in config.conditions]
    curr_operators = [op.as_dict() for op in config.region_config.operators]
    curr_amnesty = config.amnesty_config.as_dict()
    if curr_conditions == extra_metadata['conditions'] and \
            curr_operators == extra_metadata['operators'] and \
            curr_amnesty == extra_metadata['amnesty']:
        return True
    return False
def _perform_sanity_checks ( config , extra_metadata ) : curr_conditions = [ c . as_dict ( ) for c in config . conditions ] curr_operators = [ op . as_dict ( ) for op in config . region_config . operators ] curr_amnesty = config . amnesty_config . as_dict ( ) if curr_conditions == extra_metadata [ 'conditions' ] and curr_operators == extra_metadata [ 'operators' ] and curr_amnesty == extra_metadata [ 'amnesty' ] : return True return False
Method to perform sanity checks on current classification run.
Method to perform sanity checks on current classification run .
"""
    Method to perform sanity checks on current classification run.

    :param config: dirbs config instance
    :param extra_metadata: job extra metadata dict obj
    :return: bool (true/false)
    """
None
config
dirbs config instance
dirbs config instance
extra_metadata
job extra metadata dict obj
job extra metadata dict obj