summaryrefslogtreecommitdiff
path: root/pc.rb
diff options
context:
space:
mode:
Diffstat (limited to 'pc.rb')
-rw-r--r--pc.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/pc.rb b/pc.rb
index 94b2407..be64dc8 100644
--- a/pc.rb
+++ b/pc.rb
@@ -82,6 +82,8 @@ post '/pc' do
byteArray = Rjb::import('java.io.ByteArrayOutputStream'); printStream = Rjb::import('java.io.PrintStream');
out = byteArray.new() ; Rjb::import('java.lang.System').out = printStream.new(out) # joelib is too verbose
s = Rjb::import('JoelibFc') # import main class
+
+ LOGGER.debug "Running PC with pc_type '#{params[:pc_type]}' and lib '#{params[:lib]}'"
OpenTox::Algorithm.pc_descriptors( { :dataset_uri => params[:dataset_uri], :pc_type => params[:pc_type], :rjb => s, :add_uri => true, :task => task, :lib => params[:lib] } )
end
raise OpenTox::ServiceUnavailableError.newtask.uri+"\n" if task.status == "Cancelled"