diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-05-30 10:11:34 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-05-30 10:11:34 +0000 |
commit | 824436bb5dcca97f58b855a0b97e2966c10a4361 (patch) | |
tree | ab3d7c6f7eb30f5e6f267b8605292bca21ba7a4b | |
parent | f382c9ca28901984ede61c20914260ec944cb20a (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 75d4c70..4d00475 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.new model.uri + lazar = OpenTox::Model::Lazar.find model.uri, subjectid 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/) |