diff options
author | gebele <gebele@in-silico.ch> | 2013-06-25 15:49:16 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-25 15:49:16 +0200 |
commit | 0ea83a72d0e994135a10de2da530e9718c5c53fa (patch) | |
tree | 172eaeac6d535ec59e742beb0ea124fb0615b999 /application.rb | |
parent | b8ae9e89917e824ad69838a7acf30af9c23cac81 (diff) |
clean up;error message
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/application.rb b/application.rb index ece622c..6ca8ff2 100644 --- a/application.rb +++ b/application.rb @@ -57,7 +57,7 @@ post '/predict/?' do # case task completed go ahead case task[RDF::OT.hasStatus] when "Error" - @error_report = "Attention, #{@identifier} is not a valid SMILES string." + @error_report = "Attention, '#{params[:identifier]}' is not a valid SMILES string." haml :error when "Completed" @identifier = params[:identifier] @@ -69,12 +69,10 @@ post '/predict/?' do lazar = OpenTox::Algorithm.new File.join($algorithm[:uri],"lazar") # gather models from service and compare if selected #TODO compare selected by uri - $logger.debug params[:selection] params[:selection].each do |model| @mselected = model[0] @mall = OpenTox::Model.all $model[:uri] @mall.each do |m| - $logger.debug m.inspect @@prediction_models << m if m.title =~ /#{@mselected}/ end end @@ -83,7 +81,6 @@ post '/predict/?' do # results in prediction variable # store prediction in array for better handling @@prediction_models.each do |m| - $logger.debug m.inspect @prediction_uri = m.run :compound_uri => "#{@compound.uri}" prediction = OpenTox::Dataset.new @prediction_uri pa = [] |