diff options
author | Andreas Maunz <andreas@maunz.de> | 2012-03-14 12:30:59 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2012-03-14 12:30:59 +0100 |
commit | 268f8096aa7737dd6d8f28224fd9c1f205712a6a (patch) | |
tree | 82cedaf84143851d5b62d2f9e6a12292413ef8de | |
parent | da12311f03ef0071c394ac66f5e54e8817b65b9c (diff) |
Fixed https://github.com/opentox/model/issues/8
-rw-r--r-- | lib/transform.rb | 6 |
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 ] |