From 259cd085e053193b4c166495ae1af35cfa94bcf6 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 18 Sep 2015 14:48:39 +0200 Subject: import of datasets without features fixed --- 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 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? -- cgit v1.2.3