From 91e2aae79278c5c3b9d3965eb3c3ec6d88e87c39 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 21 Oct 2014 11:06:44 +0200 Subject: ensure to load compound when determening compound indices in dataset --- 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 67722d6..d875abd 100644 --- a/lib/dataset.rb +++ b/lib/dataset.rb @@ -353,7 +353,7 @@ module OpenTox def compound_indices( compound_uri ) unless defined?(@cmp_indices) and @cmp_indices.has_key?(compound_uri) @cmp_indices = {} - @compounds.size.times do |i| + compounds().size.times do |i| c = @compounds[i].uri if @cmp_indices[c]==nil @cmp_indices[c] = [i] -- cgit v1.2.3