src/dirbs/utils.py
def log_analysis_window(logger, analysis_start_date, analysis_end_date, start_message='',
                        start_date_inclusive=True, end_date_inclusive=False):
    """
    Helper function to print out window on used for analysis and list generation using interval notation.

    Arguments:
        logger: DIRBS logger object
        analysis_start_date: start date of the analysis window
        analysis_end_date: end date of the analysis window
        start_message: start message string default empty
        start_date_inclusive: bool to indicate if start date is inclusive default True
        end_date_inclusive: bool to indicate if end date is inclusive default False
    """
    start_date_interval_notation = '[' if start_date_inclusive else '('
    end_date_interval_notation = ']' if end_date_inclusive else ')'
    logger.debug('{0} {sd_interval_notation}{start_date}, '
                 '{end_date}{ed_interval_notation}'.format(start_message,
                                                           sd_interval_notation=start_date_interval_notation,
                                                           start_date=analysis_start_date,
                                                           end_date=analysis_end_date,
                                                           ed_interval_notation=end_date_interval_notation))

    Helper function to print out window on used for analysis and list generation using interval notation.

    Arguments:
        logger: DIRBS logger object
        analysis_start_date: start date of the analysis window
        analysis_end_date: end date of the analysis window
        start_message: start message string default empty
        start_date_inclusive: bool to indicate if start date is inclusive default True
        end_date_inclusive: bool to indicate if end date is inclusive default False
    
Helper function to print out window on used for analysis and list generation using interval notation.
Helper function to print out window on used for analysis and list generation using interval notation .
def log_analysis_window(logger, analysis_start_date, analysis_end_date, start_message='',
                        start_date_inclusive=True, end_date_inclusive=False):
    start_date_interval_notation = '[' if start_date_inclusive else '('
    end_date_interval_notation = ']' if end_date_inclusive else ')'
    logger.debug('{0} {sd_interval_notation}{start_date}, '
                 '{end_date}{ed_interval_notation}'.format(start_message,
                                                           sd_interval_notation=start_date_interval_notation,
                                                           start_date=analysis_start_date,
                                                           end_date=analysis_end_date,
                                                           ed_interval_notation=end_date_interval_notation))
def log_analysis_window ( logger , analysis_start_date , analysis_end_date , start_message = '' , start_date_inclusive = True , end_date_inclusive = False ) : start_date_interval_notation = '[' if start_date_inclusive else '(' end_date_interval_notation = ']' if end_date_inclusive else ')' logger . debug ( '{0} {sd_interval_notation}{start_date}, ' '{end_date}{ed_interval_notation}' . format ( start_message , sd_interval_notation = start_date_interval_notation , start_date = analysis_start_date , end_date = analysis_end_date , ed_interval_notation = end_date_interval_notation ) )
Helper function to print out window on used for analysis and list generation using interval notation.
Helper function to print out window on used for analysis and list generation using interval notation .
"""
    Helper function to print out window on used for analysis and list generation using interval notation.

    Arguments:
        logger: DIRBS logger object
        analysis_start_date: start date of the analysis window
        analysis_end_date: end date of the analysis window
        start_message: start message string default empty
        start_date_inclusive: bool to indicate if start date is inclusive default True
        end_date_inclusive: bool to indicate if end date is inclusive default False
    """
logger
DIRBS logger object
DIRBS logger object
analysis_start_date
start date of the analysis window
start date of the analysis window
analysis_end_date
end date of the analysis window
end date of the analysis window
start_message
start message string default empty
start message string default empty
start_date_inclusive
bool to indicate if start date is inclusive default True
bool to indicate if start date is inclusive default True
end_date_inclusive
bool to indicate if end date is inclusive default False
bool to indicate if end date is inclusive default False