Skip to content

Not sampling HMCode parameters with CosmoSIS #612

@paulrogozenski

Description

@paulrogozenski

Bug description and solution
When sampling a firecrown likelihood with CosmoSIS, varying the HMCode parameters modifying the contribution of baryonic feedback are not varied in the MCMC in firecrown v1.14. This is due to inconsistencies in the lower-case/camel-case conventions within each code. To address the bug, we must modify the update function in the CAMBExtraParameters class of ccl_factory to call something like the following:

    try:
        self.HMCode_A_baryon = params.get_from_full_name("HMCode_A_baryon")
    except KeyError:
        pass
    try:
        self.HMCode_eta_baryon = params.get_from_full_name("HMCode_eta_baryon")
    except KeyError:
        pass
    try:
        self.HMCode_logT_AGN = params.get_from_full_name("HMCode_logT_AGN")
    except KeyError:
        pass

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions