From ff87fd32e3c98fcebf7cdb3cd17ea8c3101ed6da Mon Sep 17 00:00:00 2001 From: Jean Bredeche Date: Thu, 6 Aug 2015 13:52:58 -0400 Subject: [PATCH] BUG: Let logbook figure out how to bind the context manager. --- zipline/gens/tradesimulation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index af9117d2..557a979c 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -87,7 +87,7 @@ class AlgorithmSimulator(object): # snapshot time to any log record generated. with ExitStack() as stack: - stack.enter_context(self.processor.threadbound()) + stack.enter_context(self.processor) stack.enter_context(ZiplineAPI(self.algo)) data_frequency = self.sim_params.data_frequency