diff options
author | gebele <gebele@in-silico.ch> | 2013-03-15 13:47:38 +0100 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-03-15 13:47:38 +0100 |
commit | 53321ba549175f7ffb40a5d5515a0047f369203d (patch) | |
tree | 06bfc29319c2b34122fe15c9a25f684fa89405ad /application.rb | |
parent | d5649c3bb4eb992c722c24c7fa96a912df2cbf8f (diff) |
version with iframes for neighbours and details view
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/application.rb b/application.rb index 658366d..5a11f2e 100644 --- a/application.rb +++ b/application.rb @@ -40,30 +40,32 @@ post '/predict/?' do m.get @@prediction_models << m if m.title =~ /#{@mselected}/ end - $logger.debug "@prediction_models: #{@@prediction_models.inspect}" + #$logger.debug "@prediction_models: #{@@prediction_models.inspect}" end # predict with selected models # results in prediction variable # store prediction in array for better handling - $logger.debug "@models: #{@models.inspect}" + #$logger.debug "@models: #{@models.inspect}" @@prediction_models.each do |m| @prediction_uri = m.run :compound_uri => "#{@compound.uri}" prediction = OpenTox::Dataset.new @prediction_uri pa = [] pa << prediction @@predictions << pa - $logger.debug "prediction class: #{prediction.class}" + #$logger.debug "prediction class: #{prediction.class}" end haml :prediction end -get '/prediction/neighbours/?' do +get '/prediction/neighbours/:id?' do + haml :neighbours, :layout => false end -get '/prediction/neighbours/details/?' do +get '/prediction/:neighbour/details/?' do + @compound = OpenTox::Compound.new params[:neighbour] haml :details, :layout => false end |