Skip to content

Commit 15bb63a

Browse files
committed
1 parent 3419790 commit 15bb63a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

model_validation_api/views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2147,9 +2147,9 @@ def get(self, request, format=None, **kwargs):
21472147
#####quick fix to get out nan and infinity numbers --will need to change it by allowing the json
21482148
new_results = []
21492149
for result in results:
2150-
if not math.isnan(result.score) and not math.isnan(result.normalized_score):
2150+
if not math.isnan(float(result.score)) and not math.isnan(float(result.normalized_score)) and not math.isinf(float(result.score)) and not math.isinf(float(result.normalized_score)):
21512151
new_results.append(result)
2152-
2152+
21532153
data_to_return = organise_results_dict(detailed_view, param_order, new_results, serializer_context)
21542154

21552155
# file = get_storage_file_by_id(request)

validation_service/app/js/controller.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ testApp.controller('ValModelDetailCtrl', ['$scope', '$rootScope', '$http', '$loc
211211
$scope.$apply();
212212
});
213213
$scope.init_graph = init_graph.values;
214+
console.log("init graph", $scope.init_graph, $scope.init_graph.length)
214215
});
215216

216217
DataHandler.loadModels({ app_id: $scope.app_id }).then(function(data) {

validation_service/app/templates/validation_framework/validation_model_detail.tpl.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ <h4 align=center> <b>Model Description</b> </h4>
6969

7070
<br>
7171
<br>
72-
<div id='panel-no-results' ng-if="init_graph.values.length == 0">
72+
<div id='panel-no-results' ng-if="init_graph.length == 0">
7373
<h3 align=center> No result available for this model </h3>
7474
</div>
7575

7676

77-
<div id=panel-results ng-if="init_graph.values.length != 0">
77+
<div id=panel-results ng-if="init_graph.length != 0">
7878
<h4 align=center> <b> Results </b></h4>
7979
<br>
8080
<div id=VF-model-table-all-data>

0 commit comments

Comments
 (0)