diff options
author | davor <vorgrimmlerdavid@gmx.de> | 2012-02-15 15:52:23 +0100 |
---|---|---|
committer | davor <vorgrimmlerdavid@gmx.de> | 2012-02-15 15:52:23 +0100 |
commit | 324d99e4961af19e8fe7486957792865b1625ce6 (patch) | |
tree | 5172558ef9c3dfda29fb4f7a5afc88e0e3146911 | |
parent | a95f44df5caefd12af0cf77aac198008d577f671 (diff) |
Fixed minor bug. Added @max_class_values variable to Table
initialisation.
-rw-r--r-- | lib/parser.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/parser.rb b/lib/parser.rb index 18c0ba7..56e4fed 100644 --- a/lib/parser.rb +++ b/lib/parser.rb @@ -522,6 +522,7 @@ module OpenTox def initialize @data = {} @activity_errors = [] + @max_class_values = 3 end def feature_values(feature) @@ -653,8 +654,8 @@ module OpenTox obmol.get_data.each { |d| row[d.get_attribute] = d.get_value if properties.include?(d.get_attribute) } table.data[compound.uri] = row end - - # finda and remove ignored_features + + # find and remove ignored_features @activity_errors = table.clean_features table.add_to_dataset @dataset |