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
814fa34e
Commit
814fa34e
authored
Feb 24, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correction in plugin, if there is no unitsThroughPut by the exit then get batchThroughput
parent
d7daa461
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dream/plugins/BatchesTabularExit.py
dream/plugins/BatchesTabularExit.py
+8
-1
No files found.
dream/plugins/BatchesTabularExit.py
View file @
814fa34e
...
@@ -29,7 +29,11 @@ class BatchesTabularExit(plugin.OutputPreparationPlugin):
...
@@ -29,7 +29,11 @@ class BatchesTabularExit(plugin.OutputPreparationPlugin):
batchesThroughput
=
record
[
'results'
][
'throughput'
][
0
]
batchesThroughput
=
record
[
'results'
][
'throughput'
][
0
]
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of batches produced'
,
'Batches'
,
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of batches produced'
,
'Batches'
,
batchesThroughput
])
batchesThroughput
])
unitsThroughput
=
record
[
'results'
][
'unitsThroughput'
][
0
]
unitsThroughput
=
record
[
'results'
].
get
(
'unitsThroughput'
,
None
)
if
unitsThroughput
:
unitsThroughput
=
unitsThroughput
[
0
]
if
not
unitsThroughput
:
unitsThroughput
=
batchesThroughput
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of units produced'
,
'Units'
,
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of units produced'
,
'Units'
,
unitsThroughput
])
unitsThroughput
])
lineThroughput
=
batchesThroughput
/
float
(
maxSimTime
)
lineThroughput
=
batchesThroughput
/
float
(
maxSimTime
)
...
@@ -62,6 +66,9 @@ class BatchesTabularExit(plugin.OutputPreparationPlugin):
...
@@ -62,6 +66,9 @@ class BatchesTabularExit(plugin.OutputPreparationPlugin):
"%.2f"
%
batchesThroughputCI
[
'lb'
],
"%.2f"
%
batchesThroughputCI
[
'lb'
],
"%.2f"
%
batchesThroughputCI
[
'ub'
]]
"%.2f"
%
batchesThroughputCI
[
'ub'
]]
)
)
unitsThroughputList
=
record
[
'results'
].
get
(
'unitsThroughput'
,
None
)
if
not
unitsThroughputList
:
unitsThroughputList
=
batchesThroughputList
unitsThroughputList
=
record
[
'results'
][
'unitsThroughput'
]
unitsThroughputList
=
record
[
'results'
][
'unitsThroughput'
]
unitsThroughputCI
=
self
.
getConfidenceInterval
(
unitsThroughputList
,
confidenceLevel
)
unitsThroughputCI
=
self
.
getConfidenceInterval
(
unitsThroughputList
,
confidenceLevel
)
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of units produced'
,
'Units'
,
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
'Number of units produced'
,
'Units'
,
...
...
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