mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-17 11:25:55 +08:00
fix DONE bug when all events are in the warmup period
This commit is contained in:
committed by
Eddie Hebert
parent
7ce3667bc2
commit
473dafcfb6
@@ -222,7 +222,7 @@ class AlgorithmSimulator(object):
|
||||
# update our universe, but don't start a snapshot or
|
||||
# pass anything to handle_data. Discard any
|
||||
# perf messages.
|
||||
if event.dt < self.algo_start:
|
||||
if event.dt != 'DONE' and event.dt < self.algo_start:
|
||||
self.update_universe(event)
|
||||
if event.perf_message:
|
||||
log.info("Discarding perf message because we're in warmup.")
|
||||
|
||||
Reference in New Issue
Block a user