Rename 'trial' to 'experiment'
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user