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.
This commit is contained in:
2021-11-30 13:00:26 +01:00
parent e7a1b59787
commit eb8b31623a
+1 -1
View File
@@ -233,7 +233,7 @@ if __name__ == '__main__':
else: else:
if sys.argv[1] == '--resume': if sys.argv[1] == '--resume':
try: 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: except:
pass pass