(tempPara)
| 153 | self.outlierName = outlierName |
| 154 | |
| 155 | def tempProcess(tempPara): |
| 156 | print('Dumping event templates...') |
| 157 | if not os.path.exists(tempPara.savePath): |
| 158 | os.makedirs(tempPara.savePath) |
| 159 | |
| 160 | #read the templates |
| 161 | templates = [] |
| 162 | with open('./' + tempPara.templateName) as tl: |
| 163 | for line in tl: |
| 164 | templates.append([0, line.strip(), 0]) |
| 165 | |
| 166 | pd.DataFrame(templates, columns=["EventId","EventTemplate","Occurrences"]).to_csv("temp_templates.csv", index=False) |
| 167 | |
| 168 | |
| 169 |