diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-02-09 16:08:44 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-02-09 16:08:44 +0100 |
commit | 53836c19a0ad9b293c61a491f646ff46985725a3 (patch) | |
tree | 572fddfd42e87daf2550b748289ef03912afe366 | |
parent | d09179be7f08c341b871b2b17e7c105bf1548f1d (diff) |
Commented out caching (see http://goo.gl/ybSy3)jl
-rw-r--r-- | lazar.rb | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -152,10 +152,10 @@ post '/:id/?' do response['Content-Type'] = 'text/uri-list' if compound_uri - cache = PredictionCache.find(:model_uri => lazar.uri, :compound_uri => compound_uri).first - if cache and uri_available?(cache.dataset_uri) - return cache.dataset_uri - else + #cache = PredictionCache.find(:model_uri => lazar.uri, :compound_uri => compound_uri).first + #if cache and uri_available?(cache.dataset_uri) + # return cache.dataset_uri + #else begin prediction_uri = lazar.predict(compound_uri,true,@subjectid).uri PredictionCache.create(:model_uri => lazar.uri, :compound_uri => compound_uri, :dataset_uri => prediction_uri) @@ -164,7 +164,7 @@ post '/:id/?' do LOGGER.error "Lazar prediction failed for #{compound_uri} with #{$!} " raise "Prediction of #{compound_uri} with #{lazar.uri} failed." end - end + #end elsif dataset_uri task = OpenTox::Task.create("Predict dataset",url_for("/#{lazar.id}", :full)) do |task| lazar.predict_dataset(dataset_uri, @subjectid, task).uri |