firecrown.connector.numcosmo.numcosmo.MappingNumCosmo#
- class firecrown.connector.numcosmo.numcosmo.MappingNumCosmo(require_nonlinear_pk=False, p_ml=None, p_mnl=None, dist=None)[source]#
Bases:
ObjectMapping support for NumCosmo.
This is a subclass of
Mappingthat provides a mapping from a NumCosmo Cosmological model to a CCL cosmology. It also converts NumCosmo models toParamsMapobjects.- Parameters:
require_nonlinear_pk (
bool) –p_ml (
Optional[PowspecML]) –p_mnl (
Optional[PowspecMNL]) –dist (
Optional[Distance]) –
Public Methods:
__init__([require_nonlinear_pk, p_ml, ...])Initialize a MappingNumCosmo object.
set_params_from_numcosmo(mset)Return a PyCCLCosmologyConstants object.
calculate_ccl_args(mset)Calculate the arguments necessary for CCL for this sample.
create_params_map(model_list, mset)Create a ParamsMap from a NumCosmo MSet.
do_get_property(pspec)do_set_property(pspec, value)Inherited from
Objectget_data(self, key)get_qdata(self, quark)set_data(self, key[, data])steal_data(self, key)steal_qdata(self, quark)replace_data(*args, **kargs)replace_qdata(*args, **kargs)bind_property_full(self, source_property, ...)compat_control(what[, data])interface_find_property(g_iface, property_name)interface_install_property(g_iface, pspec)interface_list_properties(g_iface)notify_by_pspec(self, pspec)watch_closure(self, closure)ref(self)ref_sink(self)unref(self)force_floating(self)get_property(self, property_name, value)get_propertiesset_property(self, property_name, value)set_propertiesbind_property(self, source_property, target, ...)connectconnect_afterconnect_objectconnect_object_afterdisconnect_by_funchandler_block_by_funchandler_unblock_by_funcemitchainweak_ref__copy____deepcopy__freeze_notify()Freezes the object's property-changed notification queue.
connect_data(detailed_signal, handler, ...)Connect a callback to the given signal with optional user data.
handler_block(handler_id)Blocks the signal handler from being invoked until handler_unblock() is called.
handler_unblockint)
disconnectint)
handler_disconnectint)
handler_is_connectedint) -> bool
stop_emission_by_namestr)
stop_emission(detailed_signal)Deprecated, please use stop_emission_by_name.
emit_stop_by_name(detailed_signal)Deprecated, please use stop_emission_by_name.
Inherited from
Objectfind_propertyinstall_propertiesinstall_propertylist_propertiesoverride_propertyInherited from
GObject__repr__()Return repr(self).
__hash__()Return hash(self).
__setattr__(name, value, /)Implement setattr(self, name, value).
__delattr__(name, /)Implement delattr(self, name).
__lt__(value, /)Return self<value.
__le__(value, /)Return self<=value.
__eq__(value, /)Return self==value.
__ne__(value, /)Return self!=value.
__gt__(value, /)Return self>value.
__ge__(value, /)Return self>=value.
__init__(*args, **kwargs)get_propertyget_propertiesset_propertyset_propertiesbind_propertyconnectconnect_afterconnect_objectconnect_object_afterdisconnect_by_funchandler_block_by_funchandler_unblock_by_funcemitchainweak_ref__copy____deepcopy____doc____gdoc__propsPrivate Methods:
Return the mapping name.
_set_mapping_name(value)Set the mapping name.
Return whether nonlinear power spectra are required.
_set_require_nonlinear_pk(value)Set whether nonlinear power spectra are required.
Return the NumCosmo PowspecML object.
_set_p_ml(value)Set the NumCosmo PowspecML object.
Return the NumCosmo PowspecMNL object.
_set_p_mnl(value)Set the NumCosmo PowspecMNL object.
Return the NumCosmo Distance object.
_set_dist(value)Set the NumCosmo Distance object.
Inherited from
Object_unsupported_method(*args, **kargs)_unsupported_data_method(*args, **kargs)
- _get_require_nonlinear_pk()[source]#
Return whether nonlinear power spectra are required.
- Return type:
bool
- _set_p_ml(value)[source]#
Set the NumCosmo PowspecML object.
- Parameters:
value (
Optional[PowspecML]) –
- _set_p_mnl(value)[source]#
Set the NumCosmo PowspecMNL object.
- Parameters:
value (
Optional[PowspecMNL]) –
- _set_require_nonlinear_pk(value)[source]#
Set whether nonlinear power spectra are required.
- Parameters:
value (
bool) –
- calculate_ccl_args(mset)[source]#
Calculate the arguments necessary for CCL for this sample.
- Parameters:
mset (
MSet) –
- create_params_map(model_list, mset)[source]#
Create a ParamsMap from a NumCosmo MSet.
- Parameters:
model_list (
list[str]) –mset (
MSet) –
- Return type:
- dist#
Return the NumCosmo Distance object.
- mapping_name#
Return the mapping name.
- p_ml#
Return the NumCosmo PowspecML object.
- p_mnl#
Return the NumCosmo PowspecMNL object.
- require_nonlinear_pk#
Return whether nonlinear power spectra are required.