summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Maunz <andreas@maunz.de>2012-03-14 12:30:59 +0100
committerAndreas Maunz <andreas@maunz.de>2012-03-14 12:30:59 +0100
commit268f8096aa7737dd6d8f28224fd9c1f205712a6a (patch)
tree82cedaf84143851d5b62d2f9e6a12292413ef8de
parentda12311f03ef0071c394ac66f5e54e8817b65b9c (diff)
Fixed https://github.com/opentox/model/issues/8
-rw-r--r--lib/transform.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/transform.rb b/lib/transform.rb
index 8fe1093..5c485fb 100644
--- a/lib/transform.rb
+++ b/lib/transform.rb
@@ -396,8 +396,10 @@ module OpenTox
@q_prop = gsl_q_prop_orig.row(0).to_a
end
- LOGGER.debug "F: #{@n_prop.size}x#{@n_prop[0].size}; R: #{@q_prop.size}"
- LOGGER.debug "Sims: #{@sims.size}, Acts: #{@acts.size}"
+ if (@n_prop && @q_prop)
+ LOGGER.debug "F: #{@n_prop.size}x#{@n_prop[0].size}; R: #{@q_prop.size}"
+ end
+ LOGGER.debug "Sims: #{@sims.size}, Acts: #{@acts.size}" if (@sims && @acts)
@sims = [ gram_matrix, @sims ]