From 2a8e19b22fb6bea46c9927fee4f9667929d4ad15 Mon Sep 17 00:00:00 2001 From: fawce Date: Thu, 21 Jun 2012 22:08:25 -0400 Subject: [PATCH] name change for positions_value --- zipline/finance/performance.py | 2 +- zipline/lines.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/zipline/finance/performance.py b/zipline/finance/performance.py index d0dbb643..9d761eb1 100644 --- a/zipline/finance/performance.py +++ b/zipline/finance/performance.py @@ -553,7 +553,7 @@ class PerformancePeriod(object): # cumulative_capital_used, max_leverage, max_capital_used portfolio['cash'] = portfolio['ending_cash'] portfolio['start_date'] = portfolio['period_open'] - portfolio['position_value'] = portfolio['ending_value'] + portfolio['positions_value'] = portfolio['ending_value'] del(portfolio['ending_cash']) del(portfolio['period_open']) diff --git a/zipline/lines.py b/zipline/lines.py index a2a4aa8b..d346fdb3 100644 --- a/zipline/lines.py +++ b/zipline/lines.py @@ -327,7 +327,7 @@ class SimulatedTrading(object): @property def is_success(self): - return self.sim.read() and not self.sim.exception + return self.sim.ready() and not self.sim.exception #-------------------------------- # Component property accessors