diff options
author | gebele <gebele@in-silico.ch> | 2014-10-17 15:37:02 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2014-10-17 15:37:02 +0200 |
commit | 9789095fbf7f2053a95b328d299b49950fa48676 (patch) | |
tree | 982a8e5a53607842d9b51fc06e8156f95760253c /application.rb | |
parent | 1f50269789d79c82923f204f8cfde7f305994c52 (diff) |
updated Gemfile with local opentox-gems; added validation to gemspec
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 0185518..22900f6 100644 --- a/application.rb +++ b/application.rb @@ -9,7 +9,7 @@ helpers do # models must be edited with RDF.type => (RDF::OT.PredictionModel, EchaEndpoint) @@models = [] models = `curl -k GET -H accept:text/uri-list #{$model[:uri]}`.split("\n") - .collect{|m| model = OpenTox::Model::Lazar.find m; if model.type.flatten.to_s =~ /PredictionModel/ then @@models << model end} + .collect{|m| model = OpenTox::Model::Lazar.find m; @@models << model if model.type.flatten.to_s =~ /PredictionModel/} @@cv = [] `curl -k GET -H accept:text/uri-list #{$validation[:uri]}/crossvalidation`.split("\n").each{|cv| x = OpenTox::Validation.find cv; @@cv << x} end |