From 3707c7b2257549c87c038cf259e8331fb6191d48 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Wed, 20 Mar 2013 12:12:33 -0400 Subject: [PATCH] MAINT: Changes name of grouping of by dt in generator chain. Changes name to `grouped_by_dt` instead of `grouped_by_date` to clarify that the grouping is by dt, which can be by minute, instead of grouping by calendar date. --- zipline/algorithm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index 2516df27..03ecbfb4 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -131,13 +131,13 @@ class TradingAlgorithm(object): self.with_alias_dt = alias_dt(self.with_tnfms) # Group together events with the same dt field. This depends on the # events already being sorted. - self.grouped_by_date = groupby(self.with_alias_dt, attrgetter('dt')) + self.grouped_by_dt = groupby(self.with_alias_dt, attrgetter('dt')) self.trading_client = tsc(self, sim_params) transact_method = transact_partial(self.slippage, self.commission) self.set_transact(transact_method) - return self.trading_client.simulate(self.grouped_by_date) + return self.trading_client.simulate(self.grouped_by_dt) def get_generator(self): """