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
3ffbc9e5
Commit
3ffbc9e5
authored
Sep 06, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log to dream.log from manpy
parent
c0406a63
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
dream/simulation/LineGenerationJSON.py
dream/simulation/LineGenerationJSON.py
+8
-3
No files found.
dream/simulation/LineGenerationJSON.py
View file @
3ffbc9e5
...
...
@@ -59,6 +59,10 @@ from random import Random
import
sys
import
os.path
import
logging
logger
=
logging
.
getLogger
(
"dream.platform"
)
#reads general simulation inputs
def
readGeneralInput
():
general
=
G
.
JSONData
[
'general'
]
...
...
@@ -101,6 +105,7 @@ def createObjects():
#loop through all the elements
#read the data and create them
for
element
in
elementList
:
objClass
=
element
.
get
(
'_class'
,
'not found'
)
if
objClass
==
'Dream.Source'
:
id
=
element
.
get
(
'id'
,
'not found'
)
...
...
@@ -305,7 +310,7 @@ def main(argv=[], input_data=None):
#run the experiment (replications)
for
i
in
xrange
(
G
.
numberOfReplications
):
print
"start run number "
+
str
(
i
+
1
)
logger
.
info
(
"start run number "
+
str
(
i
+
1
)
)
G
.
seed
+=
1
G
.
Rnd
=
Random
(
G
.
seed
)
...
...
@@ -359,7 +364,7 @@ def main(argv=[], input_data=None):
G.outputFile.save("output.xls")
'''
print
"execution time="
+
str
(
time
.
time
()
-
start
)
logger
.
info
(
"execution time="
+
str
(
time
.
time
()
-
start
))
if
input_data
:
return
outputJSONString
...
...
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