summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-02-21 07:38:08 +0100
committerAndreas Maunz <andreas@maunz.de>2012-02-21 07:38:08 +0100
commit545a28a72a97bf8ab49e5f565ca17b23f449ff13 (patch)
tree6f536873a2ac4146ef046798d27d4dfb246869fe
parentadb09e03aafa521621b4bcb6e1d20855873b8840 (diff)
Fixed empty descriptor set detection
-rw-r--r--lib/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils.rb b/lib/utils.rb
index 709200b..f5775cf 100644
--- a/lib/utils.rb
+++ b/lib/utils.rb
@@ -171,11 +171,11 @@ module OpenTox
descs_uris << "#{cat_name[:category]}:::#{uri}"
end
}
- descs_uris.sort!
- descs_uris.collect! { |uri| uri.split(":::").last }
if descs_uris.size == 0
raise "Error! Empty set of descriptors. Did you supply one of [geometrical, topological, electronic, constitutional, hybrid, cpsa] ?"
end
+ descs_uris.sort!
+ descs_uris.collect! { |uri| uri.split(":::").last }
#LOGGER.debug "Ambit descriptor URIs: #{descs_uris.join(", ")}"
begin