From 427d0fc4e4190f201ff6a3a1ee29c6f6bf56bc56 Mon Sep 17 00:00:00 2001 From: gebele Date: Thu, 26 Jul 2018 07:59:46 +0000 Subject: muted consensus;removed debug logger; --- application.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index b0357e8..f30361e 100644 --- a/application.rb +++ b/application.rb @@ -39,7 +39,7 @@ get '/predict/?' do @models = Model::Validation.all @models = @models.delete_if{|m| m.model.name =~ /\b(Net cell association)\b/} #endpoints = @models.collect{|m| m.endpoint =~ /LOAEL/ ? m.endpoint+" (lazar)" : m.endpoint} - endpoints = @models.collect{|m| m.endpoint} + endpoints = @models.collect{|m| m.endpoint if m.endpoint != "Mutagenicity"}.compact endpoints << "Oral toxicity (Cramer rules)" endpoints << "Lowest observed adverse effect level (LOAEL) (Mazzatorta)" @endpoints = endpoints.sort.uniq @@ -191,7 +191,6 @@ get '/predict/csv/:task/:model/:filename/?' do task = Task.find params[:task].to_s m = Model::Validation.find params[:model].to_s unless params[:model] =~ /Cramer|Mazzatorta/ dataset = Batch.find_by(:name => filename) - $logger.debug dataset.inspect @ids = dataset.ids warnings = dataset.warnings.blank? ? nil : dataset.warnings.join("\n") unless warnings.nil? -- cgit v1.2.3