From 3430ce8d28846a405d403b2c4a03bcab5a11f9e6 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 4 Apr 2011 18:44:44 +0200 Subject: Selection of AMBIT datasets added --- helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'helper.rb') diff --git a/helper.rb b/helper.rb index 7d7a856..2fe8785 100644 --- a/helper.rb +++ b/helper.rb @@ -3,7 +3,7 @@ helpers do def login(username, password) logout session[:subjectid] = OpenTox::Authorization.authenticate(username, password) - LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s + #LOGGER.debug "ToxCreate login user #{username} with subjectid: " + session[:subjectid].to_s if session[:subjectid] != nil session[:username] = username return true @@ -53,8 +53,7 @@ helpers do def sort(descriptors) features = {:activating => [], :deactivating => []} - - descriptors.each { |d| LOGGER.debug d.inspect; features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } + descriptors.each { |d| features[d[OT.effect].to_sym] << {:smarts => d[OT.smarts],:p_value => d[OT.pValue]} } features end -- cgit v1.2.3