diff options
author | mguetlein <martin.guetlein@gmail.com> | 2012-06-18 17:37:55 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2012-06-18 17:37:55 +0200 |
commit | 55fb7587400f706d983170c7f56ab741a6a302b0 (patch) | |
tree | dc82ccc3d2303332fbdb8e0ef6bcf07108485019 /lib | |
parent | 6061f3abcd6d0ecd28eb1ba2ec5bff488fbd0961 (diff) |
remove pics in reports
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ot_predictions.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index 2752fcc..47a4b44 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -36,7 +36,9 @@ module Lib end def self.to_array( predictions, add_pic=false, format=false, validation_uris=nil ) - + + add_pic = false #predictions.size<=250 + confidence_available = false predictions.each do |p| confidence_available |= p.confidence_values_available? @@ -54,7 +56,7 @@ module Lib 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 - a << p.identifier(i)+"?media=image/png" + a << p.identifier(i)+"?media=image/png" if add_pic rescue => ex raise ex #a.push("Could not add pic: "+ex.message) |