MCPcopy Index your code
hub / github.com/dabeaz-course/python-mastery / reset

Method reset

Data/stocksim.py:144–147  ·  view source on GitHub ↗
(self,time)

Source from the content-addressed store, hash-verified

142 self.stocks[record[0]].add_data(record)
143
144 def reset(self,time):
145 self.time = time
146 for s in list(self.stocks.values()):
147 s.reset(time)
148
149 # Run forever. Dt is in seconds
150 def run(self,dt):

Callers

nothing calls this directly

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected