Commit 6d684500 authored by Georgios Dagkakis's avatar Georgios Dagkakis

one test changed to include also the post_processing plugin

parent 1ba43460
......@@ -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))
......
......@@ -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": [
{
......
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment