From 50e0334b3d4fa0ca5203b3920b35fe9ffbccf390 Mon Sep 17 00:00:00 2001 From: Eddie Hebert Date: Tue, 19 Mar 2013 20:53:44 -0400 Subject: [PATCH] STY: Uses if/else for setting sim_params in algorithm. Instead of checking 'if' and then 'if not', uses an if/else. --- zipline/algorithm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zipline/algorithm.py b/zipline/algorithm.py index ac2dd8e7..2a59a5e8 100644 --- a/zipline/algorithm.py +++ b/zipline/algorithm.py @@ -197,8 +197,7 @@ class TradingAlgorithm(object): if sim_params: self.sim_params = sim_params - - if not self.sim_params: + else: self.sim_params = create_simulation_parameters( start=start, end=end,