summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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: