diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-30 10:36:35 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-30 10:36:35 +0000 |
commit | 80a751445012d520beefa156e5f886695ff8765d (patch) | |
tree | 1c8397184f8e9c6538d294c35edf008b1cc7b58f | |
parent | 824436bb5dcca97f58b855a0b97e2966c10a4361 (diff) |
cached predictions fixed
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 4d00475..75d4c70 100644 --- a/application.rb +++ b/application.rb @@ -350,7 +350,7 @@ post '/predict/?' do # post chemical name to model confidence = nil title = nil db_activities = [] - lazar = OpenTox::Model::Lazar.find model.uri, subjectid + lazar = OpenTox::Model::Lazar.new model.uri prediction_dataset_uri = lazar.run({:compound_uri => @compound.uri, :subjectid => subjectid}) prediction_dataset = OpenTox::LazarPrediction.find(prediction_dataset_uri, subjectid) if prediction_dataset.metadata[OT.hasSource].match(/dataset/) |