Skip to content

shear_test fails due to camb attribute error #196

@ih64

Description

@ih64

error message is :
271 pars.InitPower.set_params(ns=0.963, As=2.168e-9)
272 #pars.InitPower.set_params(ns=0.963,As = 2.168e-9*(sigma8/0.8 )**2)
--> 273 camb.set_halofit_version(version='takahashi')
274 p = camb.get_matter_power_interpolator(pars, nonlinear=True, k_hunit=False, hubble_units=False, kmax=100., zmax=1100., k_per_logint=False).P
275 chi_recomb = cosmo.comoving_distance(1100.).value

AttributeError: module 'camb' has no attribute 'set_halofit_version'

I think instead of having camb.set_halofit_version(version='takahashi') writing "pars.NonLinearModel.set_params(halofit_version='takahashi')" might work, looking at this notebook in cell 35

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions