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 2f156a8..e311560 100644
--- a/pyisda/credit_index.pyx
+++ b/pyisda/credit_index.pyx
@@ -87,7 +87,7 @@ cdef class CurveList:
self._weights[i] = weights[i]
else:
for i in range(self._curves.size()):
- self._weights[i] /= n
+ self._weights[i] /= (n - n_skipped)
if n_skipped > 0:
warnings.warn(f"skipped {n_skipped} empty curves")