diff options
author | gebele <gebele@in-silico.ch> | 2018-07-26 07:59:46 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-07-26 07:59:46 +0000 |
commit | 427d0fc4e4190f201ff6a3a1ee29c6f6bf56bc56 (patch) | |
tree | 7d13eb230e85e6fb2388875348f4c6bac2c75cd2 /application.rb | |
parent | 5118bc145158c4dcf6f6e032db2ee47565609cd1 (diff) |
muted consensus;removed debug logger;
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 3 |
1 files changed, 1 insertions, 2 deletions
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? |