MCPcopy Index your code
hub / github.com/SpaceNetLab/StarryNet / sn_route

Function sn_route

starrynet/sn_utils.py:771–780  ·  view source on GitHub ↗
(src, time_index, file_path, configuration_file_path,
             container_id_list, remote_ssh)

Source from the content-addressed store, hash-verified

769
770
771def sn_route(src, time_index, file_path, configuration_file_path,
772 container_id_list, remote_ssh):
773 route_result = sn_remote_cmd(
774 remote_ssh,
775 "docker exec -it " + str(container_id_list[src - 1]) + " route ")
776 f = open(
777 configuration_file_path + "/" + file_path + "/route-" + str(src) +
778 "_" + str(time_index) + ".txt", "w")
779 f.writelines(route_result)
780 f.close()
781
782
783def sn_establish_new_GSL(container_id_list, matrix, constellation_size, bw,

Callers 1

runMethod · 0.85

Calls 1

sn_remote_cmdFunction · 0.85

Tested by

no test coverage detected