Rename 'trial' to 'experiment'
This commit is contained in:
@@ -16,25 +16,25 @@ class Job {
|
||||
|
||||
// load models
|
||||
$this->CI->load->model('program');
|
||||
$this->CI->load->model('trial');
|
||||
$this->CI->load->model('experiment');
|
||||
|
||||
log_message('debug', "Trial Class Initialized");
|
||||
log_message('debug', "Job Class Initialized");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param string $trialId
|
||||
* @param string $experimentId
|
||||
* @return boolean Returns TRUE on success.
|
||||
*/
|
||||
public function createConfigs($trialId) {
|
||||
$trial = $this->CI->trial->getById($trialId);
|
||||
$path = FCPATH . 'uploads/' . $trial['project_id'] . '/' . $trial['id'] . '/';
|
||||
public function createConfigs($experimentId) {
|
||||
$experiment = $this->CI->experiment->getById($experimentId);
|
||||
$path = FCPATH . 'uploads/' . $experiment['project_id'] . '/' . $experiment['id'] . '/';
|
||||
|
||||
$program = $this->CI->program->getById($trial['program_id']);
|
||||
$program = $this->CI->program->getById($experiment['program_id']);
|
||||
|
||||
$handler = fopen($path . 'trial.conf', "w");
|
||||
$handler = fopen($path . 'default.calc', "w");
|
||||
|
||||
$parameters = $this->CI->trial->getParameters($trialId);
|
||||
$parameters = $this->CI->experiment->getParameters($experimentId);
|
||||
foreach ($parameters as $param) {
|
||||
$line = str_replace("{type}", $param['type'], $program['input_line']);
|
||||
$line = str_replace("{param}", $param['name'], $line);
|
||||
|
||||
Reference in New Issue
Block a user