Skip to content

Commit

Permalink
[testpypi]
Browse files Browse the repository at this point in the history
  • Loading branch information
cmbant committed Aug 19, 2024
1 parent 22338ec commit 51e2858
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions camb/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,10 +795,7 @@ def tensor_power(self, k):
return self.primordial_power(k, 2)

def primordial_power(self, k, ix):
if np.isscalar(k):
karr = np.array([k], dtype=np.float64)
else:
karr = np.array(k, dtype=np.float64)
karr = np.ascontiguousarray([k] if np.isscalar(k) else k, dtype=np.float64)
n = karr.shape[0]
powers = np.empty(n)
self.f_PrimordialPower(karr, powers, byref(c_int(n)), byref(c_int(ix)))
Expand Down

0 comments on commit 51e2858

Please sign in to comment.