summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-07-05 12:29:49 +0200
committergebele <gebele@in-silico.ch>2013-07-05 12:29:49 +0200
commit0a47ab1a55a5e9e7a5ba0e332ccb1c73db47ca80 (patch)
treedbb5c92eda37bf368999ceb3cb126360b2ee6041
parent08058d3c08d2afba0068e88727901ca639454568 (diff)
prevent blank cmpound uris from duplicates warning
-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