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

Method get_GSes

starrynet/sn_synchronizer.py:162–171  ·  view source on GitHub ↗
(self, sat_index, time_index)

Source from the content-addressed store, hash-verified

160 return neighbors
161
162 def get_GSes(self, sat_index, time_index):
163 GSes = []
164 delaypath = self.configuration_file_path + "/" + self.file_path + '/delay/' + str(
165 time_index) + '.txt'
166 adjacency_matrix = sn_get_param(delaypath)
167 sats = self.orbit_number * self.sat_number
168 for i in range(sats, len(adjacency_matrix)):
169 if (float(adjacency_matrix[i][sat_index - 1]) > 0.01):
170 GSes.append(i + 1)
171 return GSes
172
173 def get_utility(self, time_index):
174 self.utility_checking_time.append(time_index)

Callers 2

example.pyFile · 0.80
do_get_GSesMethod · 0.80

Calls 1

sn_get_paramFunction · 0.70

Tested by

no test coverage detected