diff options
author | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-28 10:21:35 +0200 |
---|---|---|
committer | Martin Gütlein <martin.guetlein@gmail.com> | 2010-04-28 10:21:35 +0200 |
commit | 8439bb9b337bded4a54018c03500a15082bce6b0 (patch) | |
tree | 2b573ca60a14017be203233b68354e5895aa64e5 /lib/model.rb | |
parent | 60ee47624583411db004bf3601491320dabe588e (diff) |
adjust to new task api (201)
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/model.rb b/lib/model.rb index 236de84..dfd5886 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -14,7 +14,7 @@ module OpenTox def initialize(owl) [:date, :creator, :title, :format, :algorithm, :dependentVariables, :independentVariables, :predictedVariables, :trainingDataset].each do |a| - self.send("#{a.to_s}=".to_sym, owl.get(a.to_s)) + self.send("#{a.to_s}=".to_sym, owl.get(a.to_s)) end @uri = owl.uri RestClientWrapper.raise_uri_error "invalid model:\n"+ @@ -35,7 +35,7 @@ module OpenTox LOGGER.debug "Build model, algorithm_uri:"+algorithm_uri.to_s+", algorithm_parms: "+algorithm_params.inspect.to_s uri = OpenTox::RestClientWrapper.post(algorithm_uri,algorithm_params).to_s - RestClientWrapper.raise_uri_error("Invalid build model result: "+uri.to_s, algorithm_uri, algorithm_params ) unless Utils.model_uri?(uri) + RestClientWrapper.raise_uri_error("Invalid build model result: '"+uri.to_s+"'", algorithm_uri, algorithm_params ) unless Utils.model_uri?(uri) return PredictionModel.find(uri) end |