From 69d5aed7f6a6435340481d9011d8332d55f15d72 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Mon, 3 Aug 2015 12:09:00 -0400 Subject: [PATCH] BUG: Pop ffc_loader kwarg in TradingAlgorithm. Prevents us from forwarding it as an initialize_kwarg. --- zipline/algorithm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index ce845de8..bc088774 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -212,7 +212,7 @@ class TradingAlgorithm(object): # Pull in the environment's new AssetFinder for quick reference self.asset_finder = self.trading_environment.asset_finder - ffc_loader = kwargs.get('ffc_loader', None) + ffc_loader = kwargs.pop('ffc_loader', None) if ffc_loader is not None: self.engine = SimpleFFCEngine( ffc_loader,