From b06b7c7d3312e6b913ee9e6c35d0cfe93137756c Mon Sep 17 00:00:00 2001 From: mguetlein Date: Mon, 23 Aug 2010 15:49:04 +0200 Subject: owl-fix for nil-compounds --- lib/model.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/model.rb') diff --git a/lib/model.rb b/lib/model.rb index e8f6048..fb25126 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 -- cgit v1.2.3