Clean shutdown check is_success check.

Conflicts:

	zipline/lines.py
This commit is contained in:
Stephen Diehl
2012-06-20 09:30:50 -04:00
parent a82d3852bd
commit 1e2bcb0ed9
+5 -1
View File
@@ -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