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
36884db7
Commit
36884db7
authored
Jan 14, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
key in the results updated. dump updated
parent
a4a94421
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
dream/simulation/Operator.py
dream/simulation/Operator.py
+1
-1
dream/tests/dump/SkilledOperator02.json.result
dream/tests/dump/SkilledOperator02.json.result
+4
-4
No files found.
dream/simulation/Operator.py
View file @
36884db7
...
...
@@ -336,7 +336,7 @@ class Operator(ObjectResource):
if
self
.
schedule
:
json
[
'results'
][
'schedule'
]
=
[]
for
record
in
self
.
schedule
:
json
[
'results'
][
'schedule'
].
append
({
'stationId'
:
record
[
0
].
id
,
'
t
ime'
:
record
[
1
]})
json
[
'results'
][
'schedule'
].
append
({
'stationId'
:
record
[
0
].
id
,
'
entranceT
ime'
:
record
[
1
]})
G
.
outputJSON
[
'elementList'
].
append
(
json
)
#===========================================================================
...
...
dream/tests/dump/SkilledOperator02.json.result
View file @
36884db7
...
...
@@ -42,12 +42,12 @@
"results": {
"schedule": [
{
"
stationId": "M1"
,
"
time": 0
"
entranceTime": 0
,
"
stationId": "M1"
},
{
"
stationId": "M2"
,
"
time": 20.0
"
entranceTime": 20.0
,
"
stationId": "M2"
}
],
"waiting_ratio": 81.0,
...
...
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