From 1338b0cd4ff62586733e7c712d7524814b2255b7 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Wed, 27 Feb 2019 12:41:31 -0500 Subject: bugfix --- pyisda/credit_index.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyisda/credit_index.pyx b/pyisda/credit_index.pyx index a7ddd79..d2dde30 100644 --- a/pyisda/credit_index.pyx +++ b/pyisda/credit_index.pyx @@ -88,7 +88,7 @@ cdef class CurveList: warnings.warn(f"skipped {n_skipped} empty curves") # we rescale the weights for i in range(self._weights.size()): - self._weights[i] *= total_weight + self._weights[i] /= total_weight def __getitem__(self, str ticker): cdef: -- cgit v1.2.3-70-g09d2