Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions copy_with_port_portname.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@
import logging
import json

logging.basicConfig(
level=logging.INFO,
format='%(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)

def run_specialization_script(template_script_path, output_dir, edge_params_list, python_exe, copy_script_path):
"""
Calls the copy script to generate a specialized version of a node's script.
Expand Down Expand Up @@ -149,6 +143,12 @@ def create_modified_script(template_script_path, output_dir, edge_params_json_st
sys.exit(1)

if __name__ == "__main__":
logging.basicConfig(
level=logging.INFO,
format='%(message)s',
datefmt='%Y-%m-%d %H:%M:%S'
)

if len(sys.argv) != 4:
print("\nUsage: python3 copy_with_port_portname.py <TEMPLATE_SCRIPT_PATH> <OUTPUT_DIRECTORY> '<JSON_PARAMETERS>'\n")
print("Example JSON: '[{\"port\": \"2355\", \"port_name\": \"FUNBODY_REP_1\", \"source_node_label\": \"nodeA\", \"target_node_label\": \"nodeB\"}]'")
Expand Down