Skip to content
Snippets Groups Projects
Commit a5034b29 authored by Cristian Lalescu's avatar Cristian Lalescu
Browse files

fix stopping mechanism

if stop_<simname> exists, script removes it.
parent 3b2158be
No related branches found
No related tags found
No related merge requests found
Pipeline #51109 passed
......@@ -253,6 +253,10 @@ class _code(_base):
no_submit = False,
no_debug = True):
self.read_parameters()
# check if stop_<simname> exists, remove if it does
if os.path.exists(os.path.join(self.work_dir, 'stop_' + self.simname)):
warnings.warn("Found stop_<simname> file, I will remove it.")
os.remove(os.path.join(self.work_dir, 'stop_' + self.simname))
with h5py.File(os.path.join(self.work_dir, self.simname + '.h5'), 'r') as data_file:
iter0 = data_file['iteration'][...]
if not os.path.isdir(self.work_dir):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment