summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helper.rb2
1 files changed, 1 insertions, 1 deletions
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