M_b prior sn.pantheon likelihood cobaya

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Helena Garcia
Posts: 27
Joined: October 05 2021
Affiliation: UCI

M_b prior sn.pantheon likelihood cobaya

Post by Helena Garcia » September 13 2022

I am using cobaya minimizer sampler and I wanted to add a prior on the the absolute magnitude of Type Ia supernovae, M_b (sn.pantheon likelihood). Is there a variable already defined in this likelihood or should I define it on the parameter block of the .yaml file? Thank you!

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: M_b prior sn.pantheon likelihood cobaya

Post by Antony Lewis » September 13 2022

You do need to define and vary Mb (with use_abs_mag: True)

Helena Garcia
Posts: 27
Joined: October 05 2021
Affiliation: UCI

Re: M_b prior sn.pantheon likelihood cobaya

Post by Helena Garcia » September 13 2022

Does the default likelihood (i. e. sn.pantheon: null) uses M_b or one must include use_abs_mag: True specifically?

I want to use SN likelihood without using any of the H0 likelihoods available in cobaya.
When I add use_abs_mag: True within sn.pantheon: without including H0.riess2020Mb: null get I get the error:

[0 : exception handler] ---------------------------------------

Traceback (most recent call last):
File "/sw/bin/cobaya-run", line 33, in <module>
sys.exit(load_entry_point('cobaya==3.1.1', 'console_scripts', 'cobaya-run')())
File "/Users/helena/.local/lib/python3.8/site-packages/cobaya/run.py", line 225, in run_script
run(info, **arguments.__dict__)
File "/Users/helena/.local/lib/python3.8/site-packages/cobaya/run.py", line 145, in run
with Model(updated_info["params"], updated_info["likelihood"],
File "/Users/helena/.local/lib/python3.8/site-packages/cobaya/model.py", line 244, in __init__
self._set_dependencies_and_providers(skip_unused_theories=skip_unused_theories)
File "/Users/helena/.local/lib/python3.8/site-packages/cobaya/model.py", line 760, in _set_dependencies_and_providers
req for req in requirements[manual_theory]
KeyError: _manual
-------------------------------------------------------------

-------------------------------------------------------
Primary job terminated normally, but 1 process returned
a non-zero exit code.. Per user-direction, the job has been aborted.
-------------------------------------------------------
--------------------------------------------------------------------------
mpirun detected that one or more processes exited with non-zero status, thus causing
the job to be terminated. The first process to do so was:

Process name: [[5114,1],2]
Exit code: 1
--------------------------------------------------------------------------



Thanks!

Antony Lewis
Posts: 1941
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: M_b prior sn.pantheon likelihood cobaya

Post by Antony Lewis » September 13 2022

Varying Mb in a chain? Would need to see full input yaml etc. The error message does not look very helpful, so could raise an issue on github if you have a complete example to reproduce.

Post Reply