Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bucanl_eeglab_extensions
Batch Context
Commits
45c9de42
Commit
45c9de42
authored
May 03, 2018
by
Tyler Collins
Browse files
Special case for job format with -'s
parent
724807e9
Changes
1
Hide whitespace changes
Inline
Side-by-side
batch/exec_func/@ef_sbatch_driver/format_scheduler.m
View file @
45c9de42
...
...
@@ -40,7 +40,7 @@ function out = format_scheduler(~, job_spec)
%if ~isempty(job_spec.job_init)
% out = [out job_spec.job_init];
%end
out
=
sprintf
(
'%s
sbatch'
,
out
);
out
=
sprintf
(
'%ssbatch'
,
out
);
if
~
isempty
(
job_spec
.
name
)
out
=
sprintf
(
'%s --job-name=%s'
,
out
,
job_spec
.
name
);
end
...
...
@@ -110,6 +110,16 @@ function out = format_scheduler(~, job_spec)
'UniformOutput'
,
false
);
poptions_string
=
[
poptions_string
{:}];
% The '-' in the mfile_name were changed to '_' earlier...
% the following lines ensurethat we have the correct mfile_name
[
mpath
,
mname
,
ext
]
=
fileparts
(
job_spec
.
mfile_name
);
mname
=
strrep
(
mname
,
'-'
,
'_'
);
% only replace the '-' from the filename, not the path
job_spec
.
mfile_name
=
[
mpath
,
'/'
,
mname
,
ext
];
if
job_spec
.
is_octave
out
=
sprintf
(
'%s <(echo -e
''
#!/bin/bash%s%s %s%s %s
''
)\n'
,
...
out
,
'\n'
,
job_spec
.
program
,
poptions_string
,
wrapper
,
job_spec
.
mfile_name
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment