summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2015-09-09 17:45:20 +0200
committergebele <gebele@in-silico.ch>2015-09-09 17:45:20 +0200
commitbbb7b767ff595227fa69f6e4cda5b0d92f5e439c (patch)
tree92b6bb78f391c35debd8f214a2c4153b3b4db53c
parent59e929a19e71a58750a8a7e5d7256681d26b2e94 (diff)
fixed Float issue for neighbors
-rw-r--r--views/neighbors.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index cfa7858..69034b3 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -64,7 +64,8 @@
%p= Compound.find(neighbor[0]).svg
%p= Compound.find(neighbor[0]).smiles
%td{:style =>"vertical-align:middle;padding-left:1em;"}
- = neighbor[2].collect{|n| '%.2e' % n}.join ", "
+ -#= neighbor[2].collect{|n| '%.2e' % n}.join ", "
+ = neighbor[2].join ", "
%td{:style =>"vertical-align:middle;padding-left:1em;"}
/ TODO differentiate between no neighbors found and compound found in dataset, display neighbors for compounds in dataset?
= neighbor[1] != nil ? neighbor[1] : "Not enough similar compounds in training dataset."