diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-09-02 14:25:02 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-09-02 14:25:02 +0200 |
commit | f04a500388557a34d782c5310c009f559e47d046 (patch) | |
tree | 5243fb4cfc76ea03478fa436bc1269f54991b92c /lib/ot_predictions.rb | |
parent | 51613854268453746d33fbb16d6406cde4963e12 (diff) |
fixing rakefile, adding some more content to reach qmrf report, fix :model-name for relations
Diffstat (limited to 'lib/ot_predictions.rb')
-rw-r--r-- | lib/ot_predictions.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index a6c5028..dcd7d09 100644 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -147,8 +147,12 @@ module Lib a = [] #PENDING! - a.push( "http://ambit.uni-plovdiv.bg:8080/ambit2/depict/cdk?search="+ - URI.encode(OpenTox::Compound.new(:uri=>p.identifier(i)).smiles) ) if add_pic + begin + a.push( "http://ambit.uni-plovdiv.bg:8080/ambit2/depict/cdk?search="+ + URI.encode(OpenTox::Compound.new(:uri=>p.identifier(i)).smiles) ) if add_pic + rescue => ex + a.push("Could not add pic: "+ex.message) + end a << (format ? p.actual_value(i).to_nice_s : p.actual_value(i)) a << (format ? p.predicted_value(i).to_nice_s : p.predicted_value(i)) |