Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
dream
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
dream
Commits
4244528c
Commit
4244528c
authored
Jun 03, 2014
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enhancement so that trace in mulitple runs is outputted correctly
parent
c84987f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
dream/simulation/ExcelHandler.py
dream/simulation/ExcelHandler.py
+9
-1
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+1
-0
No files found.
dream/simulation/ExcelHandler.py
View file @
4244528c
...
...
@@ -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
dream/simulation/LineGenerationJSON.py
View file @
4244528c
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment