Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dabeaz-course/practical-python
/ reset
Method
reset
Work/Data/stocksim.py:142–145 ·
view source on GitHub ↗
(self,time)
Source
from the content-addressed store, hash-verified
140
self.stocks[record[0]].add_data(record)
141
142
def
reset(self,time):
143
self.time = time
144
for
s in self.stocks.values():
145
s.reset(time)
146
147
# Run forever. Dt is in seconds
148
def
run(self,dt):
Callers
nothing calls this directly
Calls
1
reset
Method · 0.45
Tested by
no test coverage detected