MCPcopy Create free account
hub / github.com/WraySmith/log-anomaly / tempProcess

Function tempProcess

parse/logparser/SLCT/SLCT.py:155–166  ·  view source on GitHub ↗
(tempPara)

Source from the content-addressed store, hash-verified

153 self.outlierName = outlierName
154
155def 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

Callers 1

SLCTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected