From f9b584c029a88036df36088372aed1664a4a6c20 Mon Sep 17 00:00:00 2001 From: Hui Lan <lanhui@zjnu.edu.cn> Date: Mon, 7 Nov 2022 09:26:11 +0800 Subject: update_network_by_force.py: back up the edge file once a month. --- Code/update_network_by_force.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Code/update_network_by_force.py b/Code/update_network_by_force.py index 4d72463..252684c 100644 --- a/Code/update_network_by_force.py +++ b/Code/update_network_by_force.py @@ -150,7 +150,8 @@ if os.path.getmtime(MERGED_EDGE_FILE) < os.path.getmtime(EDGE_POOL_DIR): # edge write_log_file('[update_network_by_force.py] Make html files for the web application.', UPDATE_NETWORK_LOG_FILE) cmd = 'python3 html_network.py -f %s -r %s -c %s -n %s' % (MERGED_EDGE_FILE, PARAMETER_FOR_BUILDRMATRIX, PARAMETER_FOR_BUILDCMATRIX, PARAMETER_FOR_NET) os.system(cmd) - copy_and_backup_file(MERGED_EDGE_FILE, '../Analysis') # the backup file will be used for further analysis + if datetime.now().day % 28 == 0: + copy_and_backup_file(MERGED_EDGE_FILE, '../Analysis') # the backup file will be used for further analysis # Compute overlap -- cgit v1.2.1