summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-04-04 13:40:10 +0200
committerAndreas Maunz <andreas@maunz.de>2012-04-04 13:40:10 +0200
commitd66686458b31d11548cf8db6b72e161d200764c6 (patch)
treee4f3e4fc2c67cc4e4f17b657280d15feccde8041
parent4a702262fd96e65703075e7b6e6e7b1c876a51bb (diff)
Fixed feature meta data
-rw-r--r--pc.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/pc.rb b/pc.rb
index 37130dd..94b2407 100644
--- a/pc.rb
+++ b/pc.rb
@@ -82,7 +82,7 @@ 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
- OpenTox::Algorithm.pc_descriptors( { :dataset_uri => params[:dataset_uri], :pc_type => params[:pc_type], :rjb => s, :task => task, :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"
halt 202,task.uri.to_s+"\n"
@@ -104,7 +104,7 @@ post '/pc/:descriptor' 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
- OpenTox::Algorithm.pc_descriptors( { :dataset_uri => params[:dataset_uri], :pc_type => params[:pc_type], :descriptor => params[:descriptor], :rjb => s, :task => task } )
+ OpenTox::Algorithm.pc_descriptors( { :dataset_uri => params[:dataset_uri], :pc_type => params[:pc_type], :descriptor => params[:descriptor], :rjb => s, add_uri => false, :task => task } )
end
raise OpenTox::ServiceUnavailableError.newtask.uri+"\n" if task.status == "Cancelled"
halt 202,task.uri.to_s+"\n"