diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-04-04 13:40:10 +0200 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-04-04 13:40:10 +0200 |
commit | d66686458b31d11548cf8db6b72e161d200764c6 (patch) | |
tree | e4f3e4fc2c67cc4e4f17b657280d15feccde8041 | |
parent | 4a702262fd96e65703075e7b6e6e7b1c876a51bb (diff) |
Fixed feature meta data
-rw-r--r-- | pc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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" |