From 1e2bcb0ed9a224d83d50abc86818454d744ad800 Mon Sep 17 00:00:00 2001 From: Stephen Diehl Date: Wed, 20 Jun 2012 09:30:50 -0400 Subject: [PATCH] Clean shutdown check is_success check. Conflicts: zipline/lines.py --- zipline/lines.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zipline/lines.py b/zipline/lines.py index a2a4aa8b..d696d97e 100644 --- a/zipline/lines.py +++ b/zipline/lines.py @@ -327,7 +327,11 @@ class SimulatedTrading(object): @property def is_success(self): - return self.sim.read() and not self.sim.exception + # TODO: other assertions? + if self.sim.did_clean_shutdown(): + return True + else: + return False #-------------------------------- # Component property accessors