We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a92e69 commit 9b0b28dCopy full SHA for 9b0b28d
face_rhythm/pipelines.py
@@ -382,6 +382,13 @@ def pipeline_basic(params):
382
########################################
383
384
print(f'RUN COMPLETE')
385
+
386
+ ## Save a small file with 'SCRIPT_COMPLETED__<datetime YMD_HMS>.txt' in the project directory.\
387
+ ## This is useful for tracking when the run was completed and if it was successful.
388
+ from datetime import datetime
389
+ path_run_complete = str(Path(directory_project) / 'SCRIPT_COMPLETED__' + datetime.now().strftime("%Y%m%d_%H%M%S") + '.txt')
390
+ with open(path_run_complete, 'w') as f:
391
+ f.write(f'{datetime.now().strftime("%Y-%m-%d %H:%M:%S")}')
392
393
results = {
394
'path_config': path_config,
0 commit comments