Skip to content

Commit

Permalink
bugfix (#1167)
Browse files Browse the repository at this point in the history
  • Loading branch information
damonge authored Mar 20, 2024
1 parent b6aa491 commit 9ce2f6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyccl/covariances.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def sigma2_B_from_mask(cosmo, a_arr=None, *, mask_wl=None,
ndim = np.ndim(a_arr)
a_arr = np.atleast_1d(a_arr)

if p_of_k_a is DEFAULT_POWER_SPECTRUM:
if p_of_k_a == DEFAULT_POWER_SPECTRUM:
cosmo.compute_linear_power()
p_of_k_a = cosmo.get_linear_power()

Expand Down

0 comments on commit 9ce2f6d

Please sign in to comment.