Commit 1aa7b019 authored by Brad Kennedy's avatar Brad Kennedy
Browse files

Added 8601~ish date and stable date for all jobs in a run

parent e5970d5d
......@@ -44,14 +44,9 @@ function job_struct=ef_exec_str(job_struct)
% LOG PATH OF THE CURRENT ANALYSIS_ROOT FOLDER...
%make directory named by history fname and date-time stamp.
root_hfn=job_struct.batch_hfn(1:strfind(job_struct.batch_hfn,'.')-1);
dt=clock;
job_struct.m_path=sprintf('%s_%s-%s-%s_%s-%s', ...
job_struct.m_path=sprintf('%s-%s', ...
root_hfn, ...
num2str(dt(1)), ...
num2str(dt(2)), ...
num2str(dt(3)), ...
num2str(dt(4)), ...
num2str(dt(5)));
job_struct.starttime);
mkdir(fullfile(job_struct.context_config.log,job_struct.m_path));
%% INITIATE BATCHINITSTR...
......
......@@ -44,14 +44,9 @@ function job_struct=ef_gen_m(job_struct)
% LOG PATH OF THE CURRENT ANALYSIS_ROOT FOLDER...
%make directory named by history fname and date-time stamp.
root_hfn=job_struct.batch_hfn(1:strfind(job_struct.batch_hfn,'.')-1);
dt=clock;
job_struct.m_path=sprintf('%s_%s-%s-%s_%s-%s', ...
job_struct.m_path=sprintf('%s-%s', ...
root_hfn, ...
num2str(dt(1)), ...
num2str(dt(2)), ...
num2str(dt(3)), ...
num2str(dt(4)), ...
num2str(dt(5)));
job_struct.starttime);
mkdir(fullfile(job_struct.context_config.log,job_struct.m_path));
%% MATLAB OR OCTAVE EXECUTION (BUILD M FILE)...
......
......@@ -254,6 +254,8 @@ end
end %End of solo file selected if statement
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% START BATCHING PROCEDURE...
starttime = datestr(now, 'yyyy-mm-ddTHH-MM-SS');
for hi=1:length(htb_fname)
%% DO FOR EACH HISTORY FILES FILE...
......@@ -302,6 +304,7 @@ for hi=1:length(htb_fname)
job_struct(hi).batch_hfn=htb_fname{hi};
job_struct(hi).batch_hfp=htb_fpath;
job_struct(hi).m_path='';
job_struct(hi).starttime = starttime;
job_struct(hi).exec_str={''};
switch batch_config(hi).exec_func
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment