Commit e434ee65 authored by Flavio TARSETTI's avatar Flavio TARSETTI

[reports] get globals from algorithm parameter or nothing if block

doesn't redefine it. Fixes #360
parent 451e3353
Pipeline #462 failed with stage
......@@ -1155,13 +1155,26 @@ app.directive("thecolumn",['$compile', function ($compile) {
if(report_algorithm_parameters_experiment[experiment_name][algorithm_name] != undefined)
{
var value = "";
for(var i = 0; i < report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name].length; i++)
if(report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name] != undefined)
{
if(i > 0 && i < report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name].length -1 )
for(var i = 0; i < report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name].length; i++)
{
value += ",";
if(i > 0 && i < report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name].length -1 )
{
value += ",";
}
value = report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name][i];
}
value = report_algorithm_parameters_experiment[experiment_name][algorithm_name][parameter_name][i];
}
else if(report["all_experiments"][experiment_name]["declaration"]["globals"][algorithm_name][parameter_name] != undefined)
{
//get globals value
value = report["all_experiments"][experiment_name]["declaration"]["globals"][algorithm_name][parameter_name];
}
else
{
//nothing is defined
value = "-";
}
$scope.itemValue = value;
......
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