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

Function sn_update_delay

starrynet/sn_utils.py:635–647  ·  view source on GitHub ↗
(file_path, configuration_file_path, timeptr,
                    constellation_size, remote_ssh,
                    remote_ftp)

Source from the content-addressed store, hash-verified

633
634
635def sn_update_delay(file_path, configuration_file_path, timeptr,
636 constellation_size, remote_ssh,
637 remote_ftp): # updating delays
638 remote_ftp.put(os.path.join(os.getcwd(), "starrynet/sn_orchestrater.py"),
639 file_path + "/sn_orchestrater.py")
640 remote_ftp.put(
641 configuration_file_path + "/" + file_path + '/delay/' + str(timeptr) +
642 '.txt', file_path + '/' + str(timeptr) + '.txt')
643 sn_remote_cmd(
644 remote_ssh,
645 "python3 " + file_path + "/sn_orchestrater.py " + file_path + '/' +
646 str(timeptr) + '.txt ' + str(constellation_size) + " update")
647 print("Delay updating done.\n")
648
649
650def sn_damage(ratio, damage_list, constellation_size, remote_ssh, remote_ftp,

Callers 1

runMethod · 0.70

Calls 1

sn_remote_cmdFunction · 0.85

Tested by

no test coverage detected