MAINT: Revert slice into returns containers instead of using .valid()

Backing out slice vs. valid(), because of an incompatiblity with
starting a minutely emitted session mid-day, since the midday start
date is not yet wired through SimulationParameters.
This commit is contained in:
Eddie Hebert
2013-05-08 18:29:49 -04:00
parent ad06acd49d
commit c0acbe2bc1
+2 -2
View File
@@ -615,10 +615,10 @@ class RiskMetricsIterative(RiskMetricsBase):
def update(self, dt, algorithm_returns, benchmark_returns):
self.algorithm_returns_cont[dt] = algorithm_returns
self.algorithm_returns = self.algorithm_returns_cont[:dt]
self.algorithm_returns = self.algorithm_returns_cont.valid()
self.benchmark_returns_cont[dt] = benchmark_returns
self.benchmark_returns = self.benchmark_returns_cont[:dt]
self.benchmark_returns = self.benchmark_returns_cont.valid()
self.num_trading_days = len(self.algorithm_returns)