Skip to content

Commit

Permalink
initialize growth (#860)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge committed Feb 23, 2021
1 parent d2a5630 commit efbb89d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyccl/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1222,6 +1222,10 @@ def _init_pklin(self, pk_linear):
raise ValueError("`pk_linear` must contain keys 'a', 'k' "
"and 'delta_matter:delta_matter' "
"(at least)")

# needed for high-z extrapolation
self.compute_growth()

na = len(pk_linear['a'])
nk = len(pk_linear['k'])
lk = np.log(pk_linear['k'])
Expand Down

0 comments on commit efbb89d

Please sign in to comment.