MCPcopy Create free account
hub / github.com/Tong89/smartNode / init_pools

Method init_pools

backend/resources.py:14–19  ·  view source on GitHub ↗
(self, leo_sats, all_gs, geo_relays)

Source from the content-addressed store, hash-verified

12 self.time_pool = {"satellites": {}, "ground_stations": {}, "geo_relays": {}}
13
14 def init_pools(self, leo_sats, all_gs, geo_relays):
15 self.time_pool = {
16 "satellites": {s.sat_id: [] for s in leo_sats},
17 "ground_stations": {gs["id"]: [] for gs in all_gs},
18 "geo_relays": {geo["id"]: [] for geo in geo_relays},
19 }
20
21 def reset(self, leo_sats, all_gs, geo_relays):
22 self.usage = {"satellites": {}, "ground_stations": {}, "geo_relays": {}}

Callers 2

resetMethod · 0.95
__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected