MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / affGridIDs

Method affGridIDs

limsim/simModel/common/networkBuild.py:88–95  ·  view source on GitHub ↗
(self, centerLine: list[tuple[float]])

Source from the content-addressed store, hash-verified

86 # return
87
88 def affGridIDs(self, centerLine: list[tuple[float]]) -> set[tuple[int]]:
89 affGridIDs = set()
90 for poi in centerLine:
91 poixhash = int(poi[0] // 100)
92 poiyhash = int(poi[1] // 100)
93 affGridIDs.add((poixhash, poiyhash))
94
95 return affGridIDs
96
97 def insertCommit(self):
98 conn = sqlite3.connect(self.dataBase, check_same_thread=False)

Callers 2

processEdgeMethod · 0.95
processConnectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected