getdist.cobaya_interface

getdist.cobaya_interface.MCSamplesFromCobaya(info, collections, name_tag=None, ignore_rows=0, ini=None, settings=None)[source]

Creates a set of samples from Cobaya’s output. Parameter names, ranges and labels are taken from the “info” dictionary (always use the “updated” one generated by cobaya.run).

For a description of the various analysis settings and default values see analysis_defaults.ini.

Parameters:
  • collections – collection(s) of samples from Cobaya
  • info – info dictionary, common to all collections (use the “updated” one, returned by cobaya.run)
  • name_tag – name for this sample to be shown in the plots’ legend
  • ignore_rows – initial samples to skip, number (int>=1) or fraction (float<1)
  • ini – The name of a .ini file with analysis settings to use
  • settings – dictionary of analysis settings to override defaults
Returns:

The MCSamples instance

getdist.cobaya_interface.expand_info_param(info_param)[source]

Expands the info of a parameter, from the user friendly, shorter format to a more unambiguous one.

getdist.cobaya_interface.fixed_value(info_param)[source]

Returns True if the parameter has been fixed to a value or through a function.

getdist.cobaya_interface.get_info_params(info)[source]

Extracts parameter info from the new yaml format.

getdist.cobaya_interface.is_derived_param(info_param)[source]

Returns True if the parameter is saved as a derived one.

getdist.cobaya_interface.is_fixed_param(info_param)[source]

Returns True if the parameter has been fixed to a value or through a function.

getdist.cobaya_interface.is_sampled_param(info_param)[source]

Returns True if the parameter has a prior.