Closed mtagliazucchi closed 10 months ago
Hi,
Sorry for the very late answer here! I'm replying in case it is still relevant. I'm surprised you had to add the P_shot
parameter at all, as that doesn't appear in the likelihood data files. There is a default input file for running the fake_planck_bluebook
likelihood: it's the default example.param
. That should run through without any problems.
If you want to reproduce the Planck 2018 values in a simplified likelihood, we also have the fake_planck_realistic
(as described in 1808.05955), which also shouldn't have any nuisance parameters and shouldn't trigger any segfaults. I think your issue might be caused by creating a fiducial file with a nuisance parameter that the likelihood doesn't expect, leading to a wrong fiducial file.
Note that we mainly use the fake likelihoods for doing forecasts. For a simplified Planck likelihood, we would recommend using Planck_lite instead (which then uses actual data instead of just a fiducial file).
Cheers, Deanna
Hi, I have a problem with fake Planck bluebook likelihood.
I want to use it but with a fiducial that reproduces Planck 2018 constraints on the 6 cosmological parameters.
To do that I deleted the
fake_planck_bluebook_fiducial.dat
file in data/, I written a parameter filefiducial.param
with the following linesand then I run
python montepython/MontePython.py -p input/fiducial.param -c chains/test_fiducial -f 0
. Let me comment the last two lines of the params file:#data.parameters['A_SZ'] = [0.96, 0, 2, 1, 1, 'nuisance']
: I originally put this line because in the originalfake_planck_bluebook_fiducial.dat
file there was in the first line the parameterA_SZ = 0.96
. However, if I uncomment this line I get an error as this parameter is not recognized as a parameter of the likelihood.data.parameters['P_shot'] = [0.0, -1, -1, 0,1, 'nuisance']
: as before I add this line since in the in the original
fake_planck_bluebook_fiducial.datfile there was in the first line the parameter
P_shot = 0`.The generation of the new fiducial works fine. However, I then try to generate 8 MCMC chains by using the command
mpirun -np 4 python montepython/MontePython.py run -p input/example_new.param -o chains/baseline_test --conf default.conf -N 10000000 --update 50 --superupdate 20
where the file
example_new.param
contains the lines:After few points (\approx 50 per chains) I get a segmentation fault error:
There are no problems when using the original fiducial and input files. Can someone help me?