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

Method getNextFrameVehs

limsim/simModel/fixedScene/replay.py:202–213  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

200 )
201
202 def getNextFrameVehs(self):
203 conn = sqlite3.connect(self.dataBase)
204 cur = conn.cursor()
205 cur.execute(
206 """SELECT DISTINCT vid FROM frameINFO
207 WHERE frame={};""".format(self.timeStep)
208 )
209 nexFrameVehs = cur.fetchall()
210 nexFrameVehs = [query[0] for query in nexFrameVehs]
211 cur.close()
212 conn.close()
213 return nexFrameVehs
214
215 def getSce(self):
216 nextFrameVehs = self.getNextFrameVehs()

Callers 1

getSceMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected