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

Method get_neighbors

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

Source from the content-addressed store, hash-verified

149 return dis
150
151 def get_neighbors(self, sat_index, time_index):
152 neighbors = []
153 delaypath = self.configuration_file_path + "/" + self.file_path + '/delay/' + str(
154 time_index) + '.txt'
155 adjacency_matrix = sn_get_param(delaypath)
156 sats = self.orbit_number * self.sat_number
157 for i in range(sats):
158 if (float(adjacency_matrix[i][sat_index - 1]) > 0.01):
159 neighbors.append(i + 1)
160 return neighbors
161
162 def get_GSes(self, sat_index, time_index):
163 GSes = []

Callers 2

example.pyFile · 0.80
do_get_neighborsMethod · 0.80

Calls 1

sn_get_paramFunction · 0.70

Tested by

no test coverage detected