def initialize_error_record_generation()

in meter-data/generate_meter_data.py [0:0]


def initialize_error_record_generation(m_start, m_end, start_time, end_time):
    global ERROR_METER_IDS
    global ERROR_START_TIME
    global ERROR_END_TIME
    # set start and end times to the global variables
    ERROR_START_TIME = start_time
    ERROR_END_TIME = end_time
    # add meter ids between starting meter no. (m_start) and ending meter no. (m_end)
    # into the list of error meter ids
    for i in range(m_start, m_end + 1):
        ERROR_METER_IDS.append(i)
    logging.debug("List of meter ids for which error record will exist - {}".format(ERROR_METER_IDS))