Skip to content
Snippets Groups Projects
Commit 67da6db2 authored by Jaden Diefenbaugh's avatar Jaden Diefenbaugh
Browse files

generalize grabbing analyzer block

parent dca5cc70
No related branches found
No related tags found
1 merge request!223Reports overhaul
...@@ -28,8 +28,8 @@ angular.module('reportApp').controller('GroupsController', ['$scope', 'ReportSer ...@@ -28,8 +28,8 @@ angular.module('reportApp').controller('GroupsController', ['$scope', 'ReportSer
vm.report = $scope.report; vm.report = $scope.report;
const getAnalyzerFromExpName = (expName) => { const getAnalyzerFromExpName = (expName) => {
let analyzer_block = vm.report.all_experiments[expName].declaration.analyzers.analysis let analyzers = vm.report.all_experiments[expName].declaration.analyzers;
|| vm.report.all_experiments[expName].declaration.analyzers.analyzer_private; let analyzer_block = analyzers[Object.keys(analyzers)[0]];
return analyzer_block.algorithm; return analyzer_block.algorithm;
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment