Skip to content

Commit

Permalink
updating black version
Browse files Browse the repository at this point in the history
  • Loading branch information
EiffL committed Feb 5, 2023
1 parent 5456150 commit 72ebdd5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions jax_cosmo/angular_cl.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ def find_index(a, b):
return cl_index.index((b, a))

cov_blocks = []
for (i, j) in cl_index:
for (m, n) in cl_index:
for i, j in cl_index:
for m, n in cl_index:
cov_blocks.append(
(find_index(i, m), find_index(j, n), find_index(i, n), find_index(j, m))
)
Expand Down Expand Up @@ -83,6 +83,7 @@ def integrand(a):

# Define an ordering for the blocks of the signal vector
cl_index = np.array(_get_cl_ordering(probes))

# Compute all combinations of tracers
def combine_kernels(inds):
return kernels[inds[0]] * kernels[inds[1]]
Expand All @@ -109,6 +110,7 @@ def noise_cl(ell, probes):
noise = np.concatenate([p.noise() for p in probes])
# Define an ordering for the blocks of the signal vector
cl_index = np.array(_get_cl_ordering(probes))

# Only include a noise contribution for the auto-spectra
def get_noise_cl(inds):
i, j = inds
Expand Down
1 change: 0 additions & 1 deletion jax_cosmo/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ def Eisenstein_Hu(cosmo, k, type="eisenhu_osc"):
)

if type == "eisenhu":

q = k * np.power(const.tcmb / 2.7, 2) / gamma_eff

# EH98 (29) #
Expand Down

0 comments on commit 72ebdd5

Please sign in to comment.