From 0ea83a72d0e994135a10de2da530e9718c5c53fa Mon Sep 17 00:00:00 2001 From: gebele Date: Tue, 25 Jun 2013 15:49:16 +0200 Subject: clean up;error message --- application.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'application.rb') 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 = [] -- cgit v1.2.3