firecrown.connector.cobaya.likelihood ===================================== .. py:module:: firecrown.connector.cobaya.likelihood .. autoapi-nested-parse:: Cobaya Likelihood Connector. Module for providing a likelihood for use in Cobaya. This module provides the class :class:`LikelihoodConnector`, which is an implementation of a Cobaya likelihood. Classes ------- .. autoapisummary:: firecrown.connector.cobaya.likelihood.LikelihoodConnector Functions --------- .. autoapisummary:: firecrown.connector.cobaya.likelihood.compute_pyccl_args_options Module Contents --------------- .. py:function:: compute_pyccl_args_options(ccl_cosmo) Creates a dictionary of pyccl arguments. This method uses the CCLFactory to create a pyccl object and returns the dictionary of precision options for the pyccl object. .. py:class:: LikelihoodConnector(info = empty_dict, name = None, timing = None, packages_path = None, initialize=True, standalone=True) Bases: :py:obj:`cobaya.likelihood.Likelihood` .. autoapi-inheritance-diagram:: firecrown.connector.cobaya.likelihood.LikelihoodConnector :parts: 1 A class implementing cobaya.likelihood.Likelihood. .. py:attribute:: input_style :type: str | None :value: None .. py:attribute:: likelihood :type: firecrown.likelihood.likelihood.Likelihood .. py:attribute:: firecrownIni :type: str .. py:attribute:: derived_parameters :type: list[str] :value: [] .. py:attribute:: build_parameters :type: firecrown.likelihood.likelihood.NamedParameters .. py:method:: initialize() Initialize the likelihood object by loading its Firecrown configuration. .. py:method:: initialize_with_params() Complete the initialization of a LikelihoodConnector object. Required by Cobaya. This version has nothing to do. .. py:method:: initialize_with_provider(provider) Set the object's provider. Required by Cobaya. :param provider: A Cobaya provider. .. py:method:: get_can_provide_params() Return the list of params provided. Required by Cobaya. Returns an empty list. .. py:method:: get_can_support_params() Return a list containing the names of the mapping's parameter names. Required by Cobaya. :return: The list of parameter names. .. py:method:: get_allow_agnostic() Is it allowed to pass all unassigned input parameters to this component. Required by Cobaya. Return False. .. py:method:: get_requirements() Returns a dictionary. Returns a dictionary with keys corresponding the contained likelihood's required parameter the values give the required options. Required by Cobaya. :return: a dictionary .. py:method:: must_provide(**requirements) Required by Cobaya. This version does nothing. .. py:method:: calculate_args(params_values) Calculate the curr ent cosmology, and set state["pyccl"] to the result. :param state: The state dictionary to update. :param params_values: The values of the parameters to use. .. py:method:: logp(*, _derived=None, **params_values) Return the log of the calculated likelihood. Required by Cobaya. :params values: The values of the parameters to use.