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
64fc9873
Commit
64fc9873
authored
Aug 07, 2014
by
Georgios Dagkakis
Committed by
Jérome Perrin
Sep 01, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
family attribute to be outputted in the results
parent
e85bd7b3
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
1 deletion
+5
-1
dream/simulation/Exit.py
dream/simulation/Exit.py
+1
-0
dream/simulation/Job.py
dream/simulation/Job.py
+1
-0
dream/simulation/Machine.py
dream/simulation/Machine.py
+1
-0
dream/simulation/Queue.py
dream/simulation/Queue.py
+2
-1
No files found.
dream/simulation/Exit.py
View file @
64fc9873
...
...
@@ -218,6 +218,7 @@ class Exit(CoreObject):
from
Globals
import
getConfidenceIntervals
json
=
{
'_class'
:
'Dream.%s'
%
self
.
__class__
.
__name__
,
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}
}
if
(
G
.
numberOfReplications
==
1
):
json
[
'results'
][
'throughput'
]
=
self
.
numOfExits
...
...
dream/simulation/Job.py
View file @
64fc9873
...
...
@@ -59,6 +59,7 @@ class Job(Entity): # inherits from the Entity c
if
(
G
.
numberOfReplications
==
1
):
#if we had just one replication output the results to excel
json
=
{
'_class'
:
'Dream.%s'
%
self
.
__class__
.
__name__
,
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}
}
#json['extraPropertyDict'] = self.extraPropertyDict
...
...
dream/simulation/Machine.py
View file @
64fc9873
...
...
@@ -985,6 +985,7 @@ class Machine(CoreObject):
from
Globals
import
getConfidenceIntervals
json
=
{
'_class'
:
'Dream.%s'
%
self
.
__class__
.
__name__
,
'id'
:
self
.
id
,
'family'
:
self
.
family
,
'results'
:
{}}
if
(
G
.
numberOfReplications
==
1
):
# if we had just one replication output the results as numbers
...
...
dream/simulation/Queue.py
View file @
64fc9873
...
...
@@ -290,7 +290,8 @@ class Queue(CoreObject):
def
outputResultsJSON
(
self
):
from
Globals
import
G
json
=
{
'_class'
:
'Dream.%s'
%
self
.
__class__
.
__name__
,
'id'
:
str
(
self
.
id
),
}
'id'
:
str
(
self
.
id
),
'family'
:
self
.
family
}
# XXX this have to be updated to support multiple generations
# if G.numberOfReplications == 1 and self.wip_stat_list:
# json['wip_stat_list'] = self.wip_stat_list
...
...
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