ENH: Safe risk_report in TradingAlgorthm.

This commit is contained in:
Thomas Wiecki
2013-08-01 16:08:56 -04:00
parent 376ae33264
commit 37bab9bb72
+1 -1
View File
@@ -331,7 +331,7 @@ class TradingAlgorithm(object):
)
daily_perfs.append(perf['daily_perf'])
else:
cum_perfs.append(perf)
self.risk_report = perf
daily_dts = [np.datetime64(perf['period_close'], utc=True)
for perf in daily_perfs]