From a82d3852bd09a040d383e55388814f44aac07732 Mon Sep 17 00:00:00 2001 From: fawce Date: Tue, 19 Jun 2012 20:43:46 -0400 Subject: [PATCH] added the is_success property to the SimulatedTrading class --- zipline/lines.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zipline/lines.py b/zipline/lines.py index a229c9f0..a2a4aa8b 100644 --- a/zipline/lines.py +++ b/zipline/lines.py @@ -325,6 +325,10 @@ class SimulatedTrading(object): if blocking: self.sim_context.join() + @property + def is_success(self): + return self.sim.read() and not self.sim.exception + #-------------------------------- # Component property accessors #--------------------------------