From ea11a43f686d6dd6f1296b4c4ee8f49b6317113b Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Tue, 12 Mar 2013 20:37:36 -0400 Subject: [PATCH] MAINT: Removes unneeded assignment in slippage. `direction` is set on each iteration of the loop, making the initial assignment unneeded. --- zipline/finance/slippage.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zipline/finance/slippage.py b/zipline/finance/slippage.py index 7b0f164c..e13380e5 100644 --- a/zipline/finance/slippage.py +++ b/zipline/finance/slippage.py @@ -103,7 +103,6 @@ class VolumeShareSlippage(object): total_order = 0 simulated_amount = 0 simulated_impact = 0.0 - direction = 1.0 for order in current_orders: