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

Method simDescriptionCommit

limsim/simModel/fixedScene/model.py:192–205  ·  view source on GitHub ↗
(self, simNote: str)

Source from the content-addressed store, hash-verified

190 conn.close()
191
192 def simDescriptionCommit(self, simNote: str):
193 currTime = datetime.now()
194 insertQuery = '''INSERT INTO simINFO VALUES (?, ?, ?, ?, ?, ?, ?, ?);'''
195 conn = sqlite3.connect(self.dataBase)
196 cur = conn.cursor()
197 cur.execute(
198 insertQuery,
199 (currTime, self.dv.x, self.dv.y, self.dv.radius, '', '',
200 'local area', simNote)
201 )
202
203 conn.commit()
204 cur.close()
205 conn.close()
206
207 def createTimer(self):
208 t = threading.Timer(1, self.dataStore)

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected