def order_assimilation(args):
    """
    Internal helper method for BorgQueen to process assimilation
    """
    (path, drone, data, status) = args
    newdata = drone.assimilate(path)
    if newdata:
        data.append(json.dumps(newdata, cls=MontyEncoder))
    status['count'] += 1
    count = status['count']
    total = status['total']
    logger.info('{}/{} ({:.2f}%) done'.format(count, total,
                                              count / total * 100))
def order_assimilation ( args ) : ( path , drone , data , status ) = args newdata = drone . assimilate ( path ) if newdata : data . append ( json . dumps ( newdata , cls = MontyEncoder ) ) status [ 'count' ] += 1 count = status [ 'count' ] total = status [ 'total' ] logger . info ( '{}/{} ({:.2f}%) done' . format ( count , total , count / total * 100 ) )
Internal helper method for BorgQueen to process assimilation