summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2018-07-26 11:25:20 +0000
committergebele <gebele@in-silico.ch>2018-07-26 11:25:20 +0000
commita1993ff4e81338115883fd931586a6421aeaab3b (patch)
tree136f180fd58cd936b4159f67359f62115a3f1074
parent427d0fc4e4190f201ff6a3a1ee29c6f6bf56bc56 (diff)
renamed endpoint
-rw-r--r--application.rb1
-rw-r--r--views/predict.haml2
2 files changed, 1 insertions, 2 deletions
diff --git a/application.rb b/application.rb
index f30361e..4fb647f 100644
--- a/application.rb
+++ b/application.rb
@@ -38,7 +38,6 @@ get '/predict/?' do
@existing_datasets = dataset_storage
@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 if m.endpoint != "Mutagenicity"}.compact
endpoints << "Oral toxicity (Cramer rules)"
endpoints << "Lowest observed adverse effect level (LOAEL) (Mazzatorta)"
diff --git a/views/predict.haml b/views/predict.haml
index 0afcc99..d9fe2d5 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -187,7 +187,7 @@
%div{:id=>endpoint.gsub(/\s+/, "_")}
%h4.head-back=endpoint
- if endpoint !~ /^Oral|Mazzatorta/
- - @models.select{|m| endpoint = endpoint.gsub("(lazar)","").strip if endpoint =~ /lazar/; m.endpoint == endpoint}.each do |model|
+ - @models.select{|m| m.endpoint == endpoint}.each do |model|
%div.row{:id => model.id,:style=>"margin-bottom:1em;"}
%span.col-lg-4.col-md-4.col-sm-4.col-xs-4
%input.check{:type => "checkbox", :name => "selection[#{model.id}]", :id => "selection[#{model.species.gsub(/\s+/, "_")}]", :value => true, :disabled => false}