Rename 'trial' to 'experiment'

This commit is contained in:
Eike Foken
2011-09-08 01:37:32 +02:00
parent 33e116ed60
commit 7b329f4501
25 changed files with 341 additions and 277 deletions

View File

@@ -22,17 +22,17 @@ class Scatt extends Program_runner {
/**
*
* @param unknown_type $trialId
* @param unknown_type $experimentId
*/
public function _createJob($trialId) {
public function _createJob($experimentId) {
$this->CI->load->library('parser');
$trial = $this->CI->trial->getById($trialId);
$experiment = $this->CI->experiment->getById($experimentId);
$path = FCPATH . 'uploads/' . $trial['project_id'] . '/' . $trial['id'] . '/';
$path = FCPATH . 'uploads/' . $experiment['project_id'] . '/' . $experiment['id'] . '/';
$handler = fopen($path . 'default.calc', "w");
$data['parameters'] = $this->CI->trial->getParameters($trialId);
$data['parameters'] = $this->CI->experiment->getParameters($experimentId);
@fwrite($handler, $this->CI->parser->parse_string($this->program['config_template'], $data, true));
@fclose($handler);