Skip to content
Snippets Groups Projects
Commit 7c86aab9 authored by ferrari's avatar ferrari
Browse files

Force the completion file to exist before the script

parent 08f03ccf
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,8 @@ def main(args):
if os.path.isfile(outpath) and not args.erase:
save.append(pd.read_hdf(outpath))
df = pd.read_pickle(args.input)
if not os.path.isfile(args.done_file):
raise FileNotFoundError(f'Did not find the current completion file at {args.done_file}')
done_file = open(args.done_file, 'a+')
done_file.seek(0)
file_list = [int(v) for v in done_file.read().split('\n') if len(v)]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment