def tempProcess(tempPara):
    logger.info('Dumping event templates...')
    if (not os.path.exists(tempPara.savePath)):
        os.makedirs(tempPara.savePath)
    templates = []
    with open(('./' + tempPara.templateName)) as tl:
        for line in tl:
            templates.append([0, line.strip(), 0])
    pd.DataFrame(templates, columns=['EventId', 'EventTemplate', 'Occurrences']).to_csv('temp_templates.csv', index=False)
def tempProcess(tempPara):
    logger.info('Dumping event templates...')
    if (not os.path.exists(tempPara.savePath)):
        os.makedirs(tempPara.savePath)
    templates = []
    with open(('./' + tempPara.templateName)) as tl:
        for line in tl:
            templates.append([0, line.strip(), 0])
    pd.DataFrame(templates, columns=['EventId', 'EventTemplate', 'Occurrences']).to_csv('temp_templates.csv', index=False)