summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2019-02-27 12:41:31 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2019-02-27 12:41:31 -0500
commit1338b0cd4ff62586733e7c712d7524814b2255b7 (patch)
treed82f769b1c509008187482168c5ecfce38c129dd
parentf0f20dc815510bf95f850b9a8733d2e09049f748 (diff)
downloadpyisda-1338b0cd4ff62586733e7c712d7524814b2255b7.tar.gz
bugfix
-rw-r--r--pyisda/credit_index.pyx2
1 files changed, 1 insertions, 1 deletions
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: