From bbb7b767ff595227fa69f6e4cda5b0d92f5e439c Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 9 Sep 2015 17:45:20 +0200 Subject: fixed Float issue for neighbors --- views/neighbors.haml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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." -- cgit v1.2.3