summaryrefslogtreecommitdiff
path: root/helper.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-07-02 12:40:02 +0200
committerChristoph Helma <helma@in-silico.ch>2010-07-02 12:40:02 +0200
commit258e55e5cbd1355a30dad6bbe2a2638609db9a18 (patch)
tree9c8d60afd594ef7a13e4fd01593737826befcf85 /helper.rb
parent80cb52f477870bd78b0f92e69650872da56fb1a5 (diff)
regression validation (partially) working
Diffstat (limited to 'helper.rb')
-rw-r--r--helper.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/helper.rb b/helper.rb
index 90529f6..4a5f739 100644
--- a/helper.rb
+++ b/helper.rb
@@ -10,25 +10,5 @@ helpers do
end
act
end
-
- def process_model(model)
- if !model.uri and model.status == "Completed"
- model.uri = RestClient.get(File.join(model.task_uri, 'resultURI')).body
- model.save
- end
- if !model.validation_uri and model.validation_status == "Completed"
- begin
- model.validation_uri = RestClient.get(File.join(model.validation_task_uri, 'resultURI')).body
- LOGGER.debug "Validation URI: #{model.validation_uri}"
- model.validation_report_task_uri = RestClient.post(File.join(@@config[:services]["opentox-validation"],"/report/crossvalidation"), :validation_uris => model.validation_uri).body
- LOGGER.debug "Validation Report Task URI: #{model.validation_report_task_uri}"
- model.save
- rescue
- end
- end
- if model.validation_report_task_uri and !model.validation_report_uri and model.validation_report_status == 'Completed'
- model.validation_report_uri = RestClient.get(File.join(model.validation_report_task_uri, 'resultURI')).body
- end
- end
end