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:
Object
Mapping support for NumCosmo.
This is a subclass of
Mapping
that provides a mapping from a NumCosmo Cosmological model to a CCL cosmology. It also converts NumCosmo models toParamsMap
objects.- 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
Object
get_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_properties
set_property
(self, property_name, value)set_properties
bind_property
(self, source_property, target, ...)connect
connect_after
connect_object
connect_object_after
disconnect_by_func
handler_block_by_func
handler_unblock_by_func
emit
chain
weak_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_unblock
int)
disconnect
int)
handler_disconnect
int)
handler_is_connected
int) -> bool
stop_emission_by_name
str)
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
Object
find_property
install_properties
install_property
list_properties
override_property
Inherited 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_property
get_properties
set_property
set_properties
bind_property
connect
connect_after
connect_object
connect_object_after
disconnect_by_func
handler_block_by_func
handler_unblock_by_func
emit
chain
weak_ref
__copy__
__deepcopy__
__doc__
__gdoc__
props
Private 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.