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
6d684500
Commit
6d684500
authored
Feb 22, 2015
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
one test changed to include also the post_processing plugin
parent
1ba43460
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
147 additions
and
21 deletions
+147
-21
dream/plugins/CapacityProjectStationUtilization.py
dream/plugins/CapacityProjectStationUtilization.py
+0
-1
dream/plugins/testModels/GUICapacityProject07.json
dream/plugins/testModels/GUICapacityProject07.json
+18
-19
dream/tests/dump/GUICapacityProject07.json.result
dream/tests/dump/GUICapacityProject07.json.result
+129
-1
No files found.
dream/plugins/CapacityProjectStationUtilization.py
View file @
6d684500
...
...
@@ -47,7 +47,6 @@ class CapacityProjectStationUtilization(plugin.OutputPreparationPlugin):
i
=
0
for
obj
in
result
[
'elementList'
]:
if
obj
.
get
(
'family'
)
==
self
.
configuration_dict
.
get
(
'family'
):
print
obj
[
'id'
],
obj
[
'results'
].
keys
()
if
obj
[
'results'
][
'meanUtilization'
]:
utilized_data
.
append
((
i
,
obj
[
'results'
][
'meanUtilization'
]
*
100
))
idle_data
.
append
((
i
,
(
1
-
obj
[
'results'
][
'meanUtilization'
])
*
100
))
...
...
dream/plugins/testModels/GUICapacityProject07.json
View file @
6d684500
...
...
@@ -198,26 +198,25 @@
"type"
:
"object_view"
}
},
"output"
:
{
"view_mean_capacity_utilization"
:
{
"configuration"
:
{
"data"
:
{
"utilization"
:
[
"meanUtilization"
]
},
"family"
:
"capacityStation"
,
"group"
:
[],
"plot"
:
"bar"
},
"gadget"
:
"Output_viewStationUtilisationGraph"
,
"title"
:
"Average Capacity Utilization"
,
"type"
:
"object_view"
}
},
"output"
:
{
"view_station_utilization"
:
{
"configuration"
:
{
"output_id"
:
"station_utilization"
},
"gadget"
:
"Output_viewChart"
,
"title"
:
"Station Utilization"
,
"type"
:
"object_view"
}
},
"post_processing"
:
{
"plugin_list"
:
[]
},
"plugin_list"
:
[
{
"_class"
:
"dream.plugins.CapacityProjectStationUtilization.CapacityProjectStationUtilization"
,
"family"
:
"CapacityStation"
,
"output_id"
:
"station_utilization"
}
]
},
"pre_processing"
:
{
"plugin_list"
:
[
{
...
...
dream/tests/dump/GUICapacityProject07.json.result
View file @
6d684500
...
...
@@ -3686,5 +3686,133 @@
"_class": "Dream.Configuration"
},
"key": "default",
"score": 0
"score": 0,
"station_utilization": {
"options": {
"series": {
"bars": {
"align": "center",
"barWidth": 0.8,
"show": true
},
"stack": true
},
"xaxis": {
"minTickSize": 1,
"ticks": [
[
0,
"EEP"
],
[
1,
"SMF"
],
[
2,
"WELD"
],
[
3,
"ASBTST"
],
[
4,
"PAINT"
],
[
5,
"CNC"
],
[
6,
"MCH"
],
[
7,
"PPASB"
]
]
},
"yaxis": {
"max": 100
}
},
"series": [
{
"data": [
[
0,
1.127450980392157
],
[
1,
10.866013071895425
],
[
2,
11.909791397248146
],
[
3,
21.696047258331
],
[
4,
16.719831314878896
],
[
5,
2.611044417767107
],
[
6,
7.352941176470589
],
[
7,
50.30969550865745
]
],
"label": "Utilized"
},
{
"data": [
[
0,
98.87254901960785
],
[
1,
89.13398692810458
],
[
2,
88.09020860275186
],
[
3,
78.30395274166901
],
[
4,
83.2801686851211
],
[
5,
97.3889555822329
],
[
6,
92.64705882352942
],
[
7,
49.69030449134255
]
],
"label": "Idle"
}
]
}
}
\ No newline at end of file
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