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

Method run

starrynet/sn_utils.py:301–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

299 self.remote_ftp = remote_ftp
300
301 def run(self):
302 print('Run in link init thread.')
303 self.remote_ftp.put(
304 os.path.join(os.getcwd(), "starrynet/sn_orchestrater.py"),
305 self.file_path + "/sn_orchestrater.py")
306 self.remote_ftp.put(
307 self.configuration_file_path + "/" + self.file_path +
308 '/delay/1.txt', self.file_path + "/1.txt")
309 print('Initializing links ...')
310 sn_remote_cmd(
311 self.remote_ssh, "python3 " + self.file_path +
312 "/sn_orchestrater.py" + " " + str(self.orbit_num) + " " +
313 str(self.sat_num) + " " + str(self.constellation_size) + " " +
314 str(self.fac_num) + " " + str(self.sat_bandwidth) + " " +
315 str(self.sat_loss) + " " + str(self.sat_ground_bandwidth) + " " +
316 str(self.sat_ground_loss) + " " + self.file_path + "/1.txt")
317
318
319# A thread designed for initializing bird routing.

Callers

nothing calls this directly

Calls 1

sn_remote_cmdFunction · 0.85

Tested by

no test coverage detected