Skip to content

Commit

Permalink
code-style bugs fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgiazagatti committed Sep 5, 2024
1 parent aec08a6 commit 87ad85e
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 93 deletions.
4 changes: 2 additions & 2 deletions soliket/halo_model/halo_model_fe/cosmology.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def compute_params(self):

D_a = cosmo.angular_diameter_distance(self.redshift).value
D_h = c / H_0
dV_dz = D_h * ((1 + self.redshift) ** 2 * D_a ** 2) / np.sqrt(om_l +
(1 + self.redshift) ** 3 * om_m) / h ** -3
dV_dz = (D_h * ((1 + self.redshift) ** 2 * D_a ** 2) /
np.sqrt(om_l + (1 + self.redshift) ** 3 * om_m) / h ** -3)

self.om_b = om_b
self.om_m = om_m
Expand Down
3 changes: 2 additions & 1 deletion soliket/halo_model/halo_model_fe/lin_matterPS.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def lin_matter_PS(self):
pars.set_cosmology(H0=par_h, ombh2=par_omega_b, omch2=par_omega_m - par_omega_b,
tau=self.cosmological_param['tau'])
pars.InitPower.set_params(ns=self.cosmological_param['ns'],
As=self.cosmological_param['As'], pivot_scalar=self.cosmological_param['pivot_scalar'])
As=self.cosmological_param['As'],
pivot_scalar=self.cosmological_param['pivot_scalar'])
pars.set_matter_power(redshifts=self.redshift, kmax=self.kmax)

pars.NonLinear = model.NonLinear_none
Expand Down
Loading

0 comments on commit 87ad85e

Please sign in to comment.