Page 1 of 1

M_b prior sn.pantheon likelihood cobaya

Posted: September 13 2022
by Helena Garcia
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!

Re: M_b prior sn.pantheon likelihood cobaya

Posted: September 13 2022
by Antony Lewis
You do need to define and vary Mb (with use_abs_mag: True)

Re: M_b prior sn.pantheon likelihood cobaya

Posted: September 13 2022
by Helena Garcia
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!

Re: M_b prior sn.pantheon likelihood cobaya

Posted: September 13 2022
by Antony Lewis
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.