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
d91a2e97
Commit
d91a2e97
authored
Apr 23, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Exit statistics to output max 2 decimals
parent
4f207d32
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
dream/plugins/DefaultTabularExit.py
dream/plugins/DefaultTabularExit.py
+15
-7
No files found.
dream/plugins/DefaultTabularExit.py
View file @
d91a2e97
...
...
@@ -24,10 +24,11 @@ class DefaultTabularExit(plugin.OutputPreparationPlugin):
# when found, add a row with the results of the specific exit
if
family
==
'Exit'
:
exitId
=
record
[
'id'
]
throughput
=
record
[
'results'
].
get
(
'throughput'
,
'undefined'
)
taktTime
=
record
[
'results'
].
get
(
'takt_time'
,
'undefined'
)
lifespan
=
record
[
'results'
].
get
(
'lifespan'
,
'undefined'
)
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
exitId
,
throughput
,
taktTime
,
lifespan
])
print
record
[
'results'
].
get
(
'throughput'
,
'undefined'
)
throughput
=
int
((
record
[
'results'
].
get
(
'throughput'
,
'undefined'
))[
0
])
taktTime
=
float
((
record
[
'results'
].
get
(
'takt_time'
,
'undefined'
))[
0
])
lifespan
=
float
((
record
[
'results'
].
get
(
'lifespan'
,
'undefined'
))[
0
])
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
exitId
,
throughput
,
round
(
taktTime
,
2
),
round
(
lifespan
,
2
)])
elif
numberOfReplications
>
1
:
# create the titles of the columns
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
]
=
[[
'Exit Id'
,
''
,
'Throughput'
,
''
,
''
,
'Takt Time'
,
''
,
''
,
'Lifespan'
,
''
],
...
...
@@ -41,9 +42,16 @@ class DefaultTabularExit(plugin.OutputPreparationPlugin):
taktTime
=
self
.
getConfidenceInterval
(
record
[
'results'
].
get
(
'takt_time'
,
'undefined'
),
confidenceLevel
)
lifespan
=
self
.
getConfidenceInterval
(
record
[
'results'
].
get
(
'lifespan'
,
'undefined'
),
confidenceLevel
)
data
[
'result'
][
'result_list'
][
0
][
'exit_output'
].
append
([
exitId
,
throughput
[
'lb'
],
throughput
[
'avg'
],
throughput
[
'ub'
],
taktTime
[
'lb'
],
taktTime
[
'avg'
],
taktTime
[
'ub'
],
lifespan
[
'lb'
],
lifespan
[
'avg'
],
lifespan
[
'ub'
]])
round
(
float
(
throughput
[
'lb'
]),
2
),
round
(
float
(
throughput
[
'avg'
]),
2
),
round
(
float
(
throughput
[
'ub'
]),
2
),
round
(
float
(
taktTime
[
'lb'
]),
2
),
round
(
float
(
taktTime
[
'avg'
]),
2
),
round
(
float
(
taktTime
[
'ub'
]),
2
),
round
(
float
(
lifespan
[
'lb'
]),
2
),
round
(
float
(
lifespan
[
'avg'
]),
2
),
round
(
float
(
lifespan
[
'ub'
]),
2
)
])
return
data
def
getConfidenceInterval
(
self
,
value_list
,
confidenceLevel
):
...
...
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