summaryrefslogtreecommitdiff
path: root/views/prediction.haml
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-10-15 08:08:32 +0000
committergebele <gebele@in-silico.ch>2015-10-15 08:08:32 +0000
commit4d011490e82b3e4d1c16639a176479904055c82d (patch)
tree76a6009d0f522c9274f435c3cfc507f5efc8b337 /views/prediction.haml
parentbccf3e4d6cd1fa0d3d0e346923da8b943916b6ff (diff)
fixed round issue for nil
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 a03b509..e7bc88a 100644
--- a/views/prediction.haml
+++ b/views/prediction.haml
@@ -30,7 +30,7 @@
%p
/ TODO fix scientific notation from database
%b Measured activity:
- = prediction[:value].numeric? ? "#{prediction[:value].round(3)} (#{@models[i].unit})" : prediction[:value]
+ = prediction[:value].numeric? ? "#{prediction[:value].to_f.round(3)} (#{@models[i].unit})" : prediction[:value]
%p Compound is part of the training dataset
- elsif prediction[:neighbors].size > 0
%p