diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-01-28 12:41:49 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-01-28 12:41:49 +0100 |
commit | 4466015d27af0a5424953eb7f1502994d73027cf (patch) | |
tree | 15284419dfa5fe384fe74bdeda03c45650a68b53 /lib | |
parent | 9750da9cb7dc14309be38f98bc0b50c8bff9eb72 (diff) |
whitelist validation-non-resource-uris, minor fixes
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/ot_predictions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ot_predictions.rb b/lib/ot_predictions.rb index c593f55..e28f35b 100755 --- a/lib/ot_predictions.rb +++ b/lib/ot_predictions.rb @@ -41,7 +41,7 @@ module Lib raise "prediction_feature not found in test_dataset, specify a test_target_dataset\n"+ "prediction_feature: '"+prediction_feature.to_s+"'\n"+ "test_dataset: '"+test_target_dataset_uri.to_s+"'\n"+ - "available features are: "+test_target_dataset.features.inspect if test_target_dataset.features.index(prediction_feature)==nil + "available features are: "+test_target_dataset.features.inspect if test_target_dataset.features.keys.index(prediction_feature)==nil else test_target_dataset = OpenTox::Dataset.find test_target_dataset_uri,subjectid raise "test target datset not found: '"+test_target_dataset_uri.to_s+"'" unless test_target_dataset |