From 0a47ab1a55a5e9e7a5ba0e332ccb1c73db47ca80 Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 5 Jul 2013 12:29:49 +0200 Subject: prevent blank cmpound uris from duplicates warning --- helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helper.rb b/helper.rb index 5ac00f1..9efb0a6 100644 --- a/helper.rb +++ b/helper.rb @@ -155,7 +155,7 @@ module OpenTox end compound_uris.duplicates.each do |uri| positions = [] - compound_uris.each_with_index{|c,i| positions << i+1 if c == uri} + compound_uris.each_with_index{|c,i| positions << i+1 if !c.blank? and c == uri} @warnings << "Duplicate compound #{uri} at rows #{positions.join(', ')}. Entries are accepted, assuming that measurements come from independent experiments." end -- cgit v1.2.3