Commit 4244528c authored by Georgios Dagkakis's avatar Georgios Dagkakis

enhancement so that trace in mulitple runs is outputted correctly

parent c84987f0
......@@ -57,4 +57,12 @@ def outputLog(fileName='Log', entityList=G.EntityList):
sheetIndex+=1
logSheet=logFile.add_sheet('sheet '+str(sheetIndex), cell_overwrite_ok=True)
logFile.save(str(fileName)+'.xls')
\ No newline at end of file
logFile.save(str(fileName)+'.xls')
def resetTrace():
# data for the trace output in excel
# -----------------------------------------------------------------------
G.traceIndex=0 #index that shows in what row we are
G.sheetIndex=1 #index that shows in what sheet we are
G.traceFile = xlwt.Workbook() #create excel file
G.traceSheet = G.traceFile.add_sheet('sheet '+str(G.sheetIndex), cell_overwrite_ok=True) #create excel sheet
\ No newline at end of file
......@@ -1315,6 +1315,7 @@ def main(argv=[], input_data=None):
#output trace to excel
if(G.trace=="Yes"):
ExcelHandler.outputTrace('trace'+str(i))
ExcelHandler.resetTrace()
G.outputJSONFile=open('outputJSON.json', mode='w')
G.outputJSON['_class'] = 'Dream.Simulation';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment