Skip to content

Commit

Permalink
Merge pull request #11 from AdamOrmondroyd/provider
Browse files Browse the repository at this point in the history
use `provider` instead of `theory`
  • Loading branch information
itrharrison authored Oct 12, 2023
2 parents 2cc137a + a2f5195 commit ef7aa5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions act_dr6_lenslike/act_dr6_lenslike.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,19 +401,19 @@ def get_requirements(self):
return ret

def logp(self, **params_values):
cl = self.theory.get_Cl(ell_factor=False, units='FIRASmuK2')
cl = self.provider.get_Cl(ell_factor=False, units='FIRASmuK2')
return self.loglike(cl, **params_values)

def get_limber_clkk(self,**params_values):
Pfunc = self.theory.get_Pk_interpolator(var_pair=("Weyl", "Weyl"), nonlinear=True, extrap_kmax=30.)
Pfunc = self.provider.get_Pk_interpolator(var_pair=("Weyl", "Weyl"), nonlinear=True, extrap_kmax=30.)
results = self.provider.get_CAMBdata()
return get_limber_clkk_flat_universe(results,Pfunc,self.trim_lmax,self.kmax,nz,zstar=None)

def loglike(self, cl, **params_values):
ell = cl['ell']
Alens = 1
if self.varying_cmb_alens:
Alens = self.theory.get_param('Alens')
Alens = self.provider.get_param('Alens')
clpp = cl['pp'] / Alens
if self.limber:
cl_kk = self.get_limber_clkk( **params_values)
Expand Down

0 comments on commit ef7aa5a

Please sign in to comment.