Skip to content
Snippets Groups Projects
Verified Commit 0e5aa38b authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Do not fail if preprocessor-generated directories have already been removed...

Do not fail if preprocessor-generated directories have already been removed (e.g. when only regenerating the tables)
parent 60a8e504
No related branches found
No related tags found
1 merge request!1stack_solve_algo={2,3} now work in unstable without block nor bytecode
......@@ -57,8 +57,14 @@ write_table_short(sprintf('simulations-%s.mat', MODEL), texname, nopng, stack_so
% Delete files and subfolders
delete(sprintf('%s.log', MODEL))
rmdir(sprintf('%s', MODEL), 's')
rmdir(sprintf('+%s', MODEL), 's')
try % Do not fail if directories have already been removed (e.g. when only regenerating the tables)
rmdir(sprintf('%s', MODEL), 's')
catch
end
try
rmdir(sprintf('+%s', MODEL), 's')
catch
end
% Move generated table in the current folder
p = strrep(which('run_all_simulations'), sprintf('matlab%srun_all_simulations.m', filesep), sprintf('tables%s', filesep));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment