Commit 481d8614 authored by Jérome Perrin's avatar Jérome Perrin

Simplify the way attainment is evaluated

parent 173d1248
......@@ -527,13 +527,12 @@
if (metric == 'intervalThroughputList') {
var attainment_list = [],
general = that.getData().general,
throughputTarget = parseFloat(general.throughputTarget),
desiredPercentageOfSuccess = parseFloat(general.desiredPercentageOfSuccess);
throughputTarget = parseFloat(general.throughputTarget);
text += "<tr><td>Daily Attainment</td><td>"
$.each(value, function(i, intervalValue) {
var icon = "fa-frown-o";
attainment_list.push((intervalValue/throughputTarget));
if ((intervalValue/throughputTarget) > desiredPercentageOfSuccess) {
if (intervalValue > throughputTarget) {
icon = "fa-smile-o"
}
text += intervalValue + ' <i class="fa ' + icon + '"/><br/>';
......
......@@ -75,14 +75,6 @@ class Simulation(ShiftsSimulation):
"type": "number",
"_class": "Dream.Property",
"_default": 10 })
conf["Dream-Configuration"]["property_list"].append( {
"id": "desiredPercentageOfSuccess",
"name": "Desired Percentage Of Success",
"description": "The desired percentage of success to determine if daily"
" throughput target has been met.",
"type": "number",
"_class": "Dream.Property",
"_default": 0.85 })
# remove tools that does not make sense here
conf.pop('Dream-Machine')
......
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