From eb8b31623a44459eaf27def33661573a34b31941 Mon Sep 17 00:00:00 2001 From: CptCaptain Date: Tue, 30 Nov 2021 13:00:26 +0100 Subject: [PATCH] overwrite last found datapoint Since the creation crashes, the data of the last point is often incomplete and causes errors later down the pipeline. Overwriting this should alleviate this issue at a reasonable cost. --- data/create_syn_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/create_syn_data.py b/data/create_syn_data.py index 2615235..e40ea15 100644 --- a/data/create_syn_data.py +++ b/data/create_syn_data.py @@ -233,7 +233,7 @@ if __name__ == '__main__': else: if sys.argv[1] == '--resume': try: - start = max([int(dir) for dir in os.listdir(out_root) if str.isdigit(dir)]) or 0 + start = max([int(dir) for dir in os.listdir(out_root) if str.isdigit(dir)]) - 1 or 0 except: pass