summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-09-13 17:53:15 +0200
committergebele <gebele@in-silico.ch>2013-09-13 17:53:15 +0200
commit42a6facfda144d0ed70063fd5b3887697578faa3 (patch)
treee2e72da7fd190ca42ec8936838a013430a6380b3 /views/prediction.haml
parent18afc02f6dffc544071e2bac764f8fdb639b7b15 (diff)
level save
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