Skip to content

Commit 6ef1882

Browse files
committed
iios
1 parent 243cf6b commit 6ef1882

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

camb/results.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,8 @@ def _CMB_unit(self, CMB_unit):
372372

373373
def _scale_cls(self, cls, CMB_unit=None, raw_cl=False, lens_potential=False):
374374
if raw_cl:
375-
ls = np.arange(1, cls.shape[0], dtype=np.float64)[..., np.newaxis]
375+
ls = np.arange(1, cls.shape[0])[..., np.newaxis]
376+
ls = np.float64(ls * (ls + 1))
376377
if lens_potential:
377378
cls[1:, 0] /= ls[:, 0] ** 2 / (2 * np.pi)
378379
cls[1:, 1:] /= ls ** (3. / 2) / (2 * np.pi)

0 commit comments

Comments
 (0)