diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 15:02:31 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-14 15:02:31 +0100 |
commit | bba009c7c59655392236e1cdaf873117bb59600f (patch) | |
tree | d40dfe6b4bf069a2d62954574521632495690f3c /lib | |
parent | eeb0b6df2dbdae29ccf3f4ccd923002e0ed65506 (diff) |
minor fixes + adjustments to set percentage completed
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ot_predictions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index 52683a6..50934e5 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -79,9 +79,9 @@ module Lib # TODO: remove LAZAR_PREDICTION_DATASET_HACK no_prediction_feature = prediction_dataset.features.keys.index(predicted_variable)==nil if no_prediction_feature - one_entry_per_compound = prediction_dataset.data_entries.keys.size == @compounds.size + one_entry_per_compound = true @compounds.each do |c| - if prediction_dataset.data_entries[c].size != 1 + if prediction_dataset.data_entries[c] and prediction_dataset.data_entries[c].size != 1 one_entry_per_compound = false break end |