MAINT: Use full function for creating empty vector.

np.full is a preferred choice when initializing a vector.
This commit is contained in:
Eddie Hebert
2015-07-01 11:14:48 -04:00
parent 9bf4855b8c
commit 0769e7698b
+1 -1
View File
@@ -143,7 +143,7 @@ class RiskMetricsCumulative(object):
self.cont_index = cont_index
self.cont_len = len(self.cont_index)
empty_cont = np.empty(self.cont_len) * np.nan
empty_cont = np.full(self.cont_len, np.nan)
self.algorithm_returns_cont = empty_cont.copy()
self.benchmark_returns_cont = empty_cont.copy()