summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Code/update_network_by_force.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Code/update_network_by_force.py b/Code/update_network_by_force.py
index d6631c5..ead3bf2 100644
--- a/Code/update_network_by_force.py
+++ b/Code/update_network_by_force.py
@@ -9,6 +9,7 @@ import glob
import time
from datetime import datetime
from configure import HISTORY_DIR, HISTORY_DIR2, UPDATE_NETWORK_LOG_FILE, MERGED_EDGE_FILE, EDGE_POOL_DIR
+from configure import PARAMETER_FOR_BUILDCMATRIX, PARAMETER_FOR_BUILDRMATRIX, PARAMETER_FOR_NET
from backup_files import copy_and_backup_file
########## Helper functions #######################
@@ -140,7 +141,9 @@ if os.path.getmtime(MERGED_EDGE_FILE) < os.path.getmtime(EDGE_POOL_DIR): # edge
write_log_file('[update_network_by_force.py] Number of lines in the new edges.txt: %d.' % (num_line(MERGED_EDGE_FILE)), UPDATE_NETWORK_LOG_FILE)
write_log_file('[update_network_by_force.py] %s' % (summarize_edge_file(MERGED_EDGE_FILE)), UPDATE_NETWORK_LOG_FILE)
manual_copy_commands = 'Please copy files to the web application: sudo cp /home/lanhui/brain/Data/temp/edges.txt /var/www/brain/brain/static/edges/edges.txt sudo cp /home/lanhui/brain/Data/temp/html_edges/edges.sqlite /var/www/brain/brain/static/edges curl http://118.25.96.118/brain/before'
- write_log_file('[update_network_by_force.py] %s' % (manual_copy_commands), UPDATE_NETWORK_LOG_FILE)
+ write_log_file('[update_network_by_force.py] %s' % (manual_copy_commands), UPDATE_NETWORK_LOG_FILE)
+ cmd = 'html_network.py -f %s -r ../Data/parameter/parameter_for_buildRmatrix.txt -c ../Data/parameter/parameter_for_buildCmatrix.txt -n ../Data/parameter/parameter_for_net.txt' % (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