diff options
author | Christoph Helma <helma@in-silico.ch> | 2015-09-18 14:48:39 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2015-09-18 14:48:39 +0200 |
commit | 259cd085e053193b4c166495ae1af35cfa94bcf6 (patch) | |
tree | d199332cbaedba2ce100636b6f6792bf18f5f448 /lib/dataset.rb | |
parent | 1255775bca9bcb9ca9100c38504e42541249865d (diff) |
import of datasets without features fixed
Diffstat (limited to 'lib/dataset.rb')
-rw-r--r-- | lib/dataset.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dataset.rb b/lib/dataset.rb index 00e2bc3..946fd90 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -245,7 +245,7 @@ module OpenTox end compound_ids << compound.id - @data_entries << Array.new(table.first.size-1) if (table.first.size-1) > 0 + table.first.size == 0 ? @data_entries << Array.new(0) : @data_entries << Array.new(table.first.size-1) vals.each_with_index do |v,j| if v.blank? |