summaryrefslogtreecommitdiff
path: root/lib/descriptor.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2015-08-13 18:57:11 +0200
committerChristoph Helma <helma@in-silico.ch>2015-08-13 18:57:11 +0200
commitd0850e2983a219da214a67190fe881c7650f532f (patch)
treea917334a1a70823dc979a27e453b2598e98c8027 /lib/descriptor.rb
parent6ab86c253ba0eb79b9e6a20effa2d18626accf2b (diff)
majority of tests working
Diffstat (limited to 'lib/descriptor.rb')
-rw-r--r--lib/descriptor.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/descriptor.rb b/lib/descriptor.rb
index f0492a2..5ae0ef2 100644
--- a/lib/descriptor.rb
+++ b/lib/descriptor.rb
@@ -71,12 +71,6 @@ module OpenTox
@physchem_descriptors = nil
@data_entries = Array.new(@compounds.size){Array.new(@smarts.size,false)}
@compounds.each_with_index do |compound,c|
- # TODO OpenBabel may segfault here
- # catch inchi errors in compound.rb
- # eg. at line 249 of rat_feature_dataset
- # which worked with opentox-client
- # (but no smarts_match)
- #p "'#{compound.inchi}'"
obconversion.read_string(obmol,compound.smiles)
@smarts.each_with_index do |smart,s|
smarts_pattern.init(smart)
@@ -214,6 +208,7 @@ module OpenTox
end
def self.serialize
+ @data_entries.collect!{|de| de.collect{|v| v.round(5) unless v.nil?}}
case @input_class
when "OpenTox::Compound"
@data_entries.first