summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-08-24 17:52:46 +0200
committerChristoph Helma <helma@in-silico.ch>2010-08-24 17:52:46 +0200
commit4aab535de7f45525c2c49350df2190511f93492c (patch)
treeb84e84375460cb51a8f08cad9fe3e03d8104783f /lib/model.rb
parent7cbb2402a4d01abcbfd3850650f9687b46804723 (diff)
parentdf3ae4a9b84b12cb668e717d5f1c30891d5a2562 (diff)
Merge commit 'mguetlein/test' into development
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 1cc0825..e36b538 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -28,13 +28,13 @@ module OpenTox
if ENV['RACK_ENV'] =~ /test|debug/
begin
raise "uri invalid" unless Utils.is_uri?(@uri)
- raise "no algorithm" unless @algorithm and @algorithm.size>0
- raise "no dependent variables" unless @dependentVariables and @dependentVariables.size>0
- raise "no indenpendent variables" unless @independentVariables
raise "no predicted variables" unless @predictedVariables and @predictedVariables.size>0
rescue => ex
RestClientWrapper.raise_uri_error "invalid model: '"+ex.message+"'\n"+self.to_yaml+"\n",@uri.to_s
end
+ LOGGER.warn "model has no dependent variable" unless @dependentVariables and @dependentVariables.size>0
+ LOGGER.warn "model has no algorithm" unless @algorithm and @algorithm.size>0
+ LOGGER.warn "model has no indenpendent variables" unless @independentVariables
end
end
end