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.
master
CptCaptain 3 years ago
parent e7a1b59787
commit eb8b31623a
  1. 2
      data/create_syn_data.py

@ -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

Loading…
Cancel
Save