src/dirbs/cli/classify.py
def _warn_about_curr_date(curr_date, logger):
    """
    Function to print out warning about setting curr_date in production.

    :param curr_date: user supplied current date
    :param logger: dirbs logger instance
    """
    if curr_date is not None:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --curr-date option passed to dirbs-classify')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. If an IMEI is classified by a condition for the first time by this invocation of')
        logger.warning('   dirbs-classify, a block date will be calculated and stored in the classification_state')
        logger.warning('   table based on the current date and the grace period for condition. This is stored and')
        logger.warning('   will remain the block date for that IMEI even if dirbs-classify is run again without')
        logger.warning('   --curr-date set. This is by design so that changes to conditions and grace periods')
        logger.warning('   do not affect the block date previously communicated to a subscriber.')
        logger.warning('2. Classifying based on old data can have effects on reporting numbers, where DIRBS says that')
        logger.warning('   a certain number of IMEIs met a condition on a certain date, but on that particular run')
        logger.warning('   the data being analyzed was not current data.')
        logger.warning('')

    Function to print out warning about setting curr_date in production.

    :param curr_date: user supplied current date
    :param logger: dirbs logger instance
    
Function to print out warning about setting curr_date in production.
Function to print out warning about setting curr_date in production .
def _warn_about_curr_date(curr_date, logger):
    if curr_date is not None:
        logger.warning('*************************************************************************')
        logger.warning('WARNING: --curr-date option passed to dirbs-classify')
        logger.warning('*************************************************************************')
        logger.warning('')
        logger.warning('This should not be done in a production DIRBS deployment for the following reasons:')
        logger.warning('')
        logger.warning('1. If an IMEI is classified by a condition for the first time by this invocation of')
        logger.warning('   dirbs-classify, a block date will be calculated and stored in the classification_state')
        logger.warning('   table based on the current date and the grace period for condition. This is stored and')
        logger.warning('   will remain the block date for that IMEI even if dirbs-classify is run again without')
        logger.warning('   --curr-date set. This is by design so that changes to conditions and grace periods')
        logger.warning('   do not affect the block date previously communicated to a subscriber.')
        logger.warning('2. Classifying based on old data can have effects on reporting numbers, where DIRBS says that')
        logger.warning('   a certain number of IMEIs met a condition on a certain date, but on that particular run')
        logger.warning('   the data being analyzed was not current data.')
        logger.warning('')
def _warn_about_curr_date ( curr_date , logger ) : if curr_date is not None : logger . warning ( '*************************************************************************' ) logger . warning ( 'WARNING: --curr-date option passed to dirbs-classify' ) logger . warning ( '*************************************************************************' ) logger . warning ( '' ) logger . warning ( 'This should not be done in a production DIRBS deployment for the following reasons:' ) logger . warning ( '' ) logger . warning ( '1. If an IMEI is classified by a condition for the first time by this invocation of' ) logger . warning ( '   dirbs-classify, a block date will be calculated and stored in the classification_state' ) logger . warning ( '   table based on the current date and the grace period for condition. This is stored and' ) logger . warning ( '   will remain the block date for that IMEI even if dirbs-classify is run again without' ) logger . warning ( '   --curr-date set. This is by design so that changes to conditions and grace periods' ) logger . warning ( '   do not affect the block date previously communicated to a subscriber.' ) logger . warning ( '2. Classifying based on old data can have effects on reporting numbers, where DIRBS says that' ) logger . warning ( '   a certain number of IMEIs met a condition on a certain date, but on that particular run' ) logger . warning ( '   the data being analyzed was not current data.' ) logger . warning ( '' )
Function to print out warning about setting curr_date in production.
Function to print out warning about setting curr_date in production .
"""
    Function to print out warning about setting curr_date in production.

    :param curr_date: user supplied current date
    :param logger: dirbs logger instance
    """
curr_date
user supplied current date
user supplied current date
logger
dirbs logger instance
dirbs logger instance