summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/prediction.haml')
-rw-r--r--views/prediction.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/prediction.haml b/views/prediction.haml
index 7f94a2e..f902504 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -46,7 +46,7 @@
- c = "carcinogen"
- else
- c = Array.new
- - c[0] = p.data_entries[0][0].round(3)
+ - c[0] = (p.data_entries[0][0].class == Float) ? p.data_entries[0][0].round(3) : (p.data_entries[0][0] != nil ? p.data_entries[0][0] : "no value")
%td
%b{:class => "title"}
= @@prediction_models[count].title.split(" ").first