(self, centerLine: list[tuple[float]])
| 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) |
no outgoing calls
no test coverage detected