summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2012-12-03 12:06:22 +0100
committermguetlein <martin.guetlein@gmail.com>2012-12-03 12:06:22 +0100
commit167391f03434c4ee87f0b58a105d582ffaf04419 (patch)
tree05422f6418a67b276dfa61dec0ac2004ea6d7abc
parentfd73098fc09aac004de5e22b4400861f1ad29971 (diff)
adjust lazar test to latest commit in opentox-ruby (how to store database activities)
-rw-r--r--lazar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lazar.rb b/lazar.rb
index cf4df25..23f62d0 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -90,10 +90,10 @@ def test_classification_model
# dataset activity
assert !@predictions[1].measured_activities(@compounds[1]).empty?
assert_equal "true", @predictions[1].measured_activities(@compounds[1]).first.to_s
- assert @predictions[1].value(@compounds[1]).nil?
+ #NO, measured activites are stored as predictions as well!, assert @predictions[1].value(@compounds[1]).nil?
# dataset prediction
c = OpenTox::Compound.from_smiles("CC(=Nc1ccc2c(c1)Cc1ccccc21)O")
- assert_equal nil, @predictions[2].value(c)
+ #NO, measured activites are stored as predictions as well!, assert_equal nil, @predictions[2].value(c)
assert_equal "true", @predictions[2].measured_activities(c).first.to_s
c = OpenTox::Compound.from_smiles("c1ccccc1NN")
assert_equal "false", @predictions[2].value(c)