From 9bc9d1c5c11aa64d410200cc21d07acc39cc3019 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 21 Feb 2011 15:44:24 +0100 Subject: fix for Datset#add false values, fix for parsing compounds without values --- lib/dataset.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/dataset.rb') diff --git a/lib/dataset.rb b/lib/dataset.rb index efab0a3..2c47502 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -237,7 +237,7 @@ module OpenTox @features[feature] = {} unless @features[feature] @data_entries[compound] = {} unless @data_entries[compound] @data_entries[compound][feature] = [] unless @data_entries[compound][feature] - @data_entries[compound][feature] << value if value + @data_entries[compound][feature] << value if value!=nil end # Add/modify metadata, existing entries will be overwritten -- cgit v1.2.3