diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-05-24 10:19:33 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-05-24 10:19:33 +0200 |
commit | 2317a75d3e91a6a03992a8f19d6559323146a256 (patch) | |
tree | 799d486e6d7fa170340c66aedce296ecf0eb5cb4 /lib | |
parent | eeb4f570f8e991b77ae5e9a7d9a58cc6b2dd115a (diff) |
extended error msg when too many predictions (for pantelis)
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ot_predictions.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index 6b90de3..2e3c238 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -121,8 +121,9 @@ module Lib end end - raise "more predicted than test compounds test:"+compounds.size.to_s+" < prediction:"+ - prediction_dataset.compounds.size.to_s if compounds.size < prediction_dataset.compounds.size + raise "more predicted than test compounds, #test: "+compounds.size.to_s+" < #prediction: "+ + prediction_dataset.compounds.size.to_s+", test-dataset: "+test_dataset_uri.to_s+", prediction-dataset: "+ + prediction_dataset_uri if compounds.size < prediction_dataset.compounds.size if CHECK_VALUES prediction_dataset.compounds.each do |c| raise "predicted compound not found in test dataset:\n"+c+"\ntest-compounds:\n"+ |