fix algo_dt logging

This commit is contained in:
scottsanderson
2012-08-18 22:04:21 -04:00
parent 18a1c88145
commit 0ef89ee704
+4
View File
@@ -303,6 +303,10 @@ class AlgorithmSimulator(object):
Run the user's algo against our current snapshot and update
the algo's simulated time.
"""
# Needs to be set so that we inject the proper date into algo
# log/print lines.
self.snapshot_dt = date
start_tic = datetime.now()
self.algo.handle_data(self.universe)