brinckmann / montepython_public

Public repository for the Monte Python Code
MIT License
93 stars 80 forks source link

Problem in running Planck likelihood #373

Open mahtaparsa opened 4 months ago

mahtaparsa commented 4 months ago

Dear all, when I run the Planck 2018 likelihood in montepython, I confront the following error: ################################################ /!\ PyFITS is deprecated, please use astropy.io.fits

clik version 3be036bbb4f9 smica Checking likelihood '/home/dirac/Desktop/Planck_2018/code/plc_3.0/plc-3.01/../../../baseline/plc_3.0/hi_l/plik/plik_rd12_HM_v22b_TTTEEE.clik' on test data. got -1172.47 expected -1172.47 (diff -4.34053e-07)

Initializing SimAll

clik version 3be036bbb4f9 simall simall_EE_BB_TE Checking likelihood '/home/dirac/Desktop/Planck_2018/code/plc_3.0/plc-3.01/../../../baseline/plc_3.0/low_l/simall/simall_100x143_offlike5_EE_Aplanck_B.clik' on test data. got -197.99 expected -197.99 (diff -4.1778e-08)

At line 232 of file /home/dirac/Desktop/Planck_2018/code/plc_3.0/plc-3.01/src/gibbs/comm_gauss_br_mod_v3.f90 Fortran runtime error: Inquire statement identifies an internal file ######################################### Any ideas to solve this problem? Thanks

brinckmann commented 4 months ago

Hi,

It looks like something went wrong compiling the Planck likelihoods. Since Planck is starting to show its age a little bit it's sometimes necessary to use older compilers, so you can try that if you used a recent compiler version. In any case, you should make sure Planck runs without MontePython by running some of the tests provided with the code and make sure you can import the python wrapper in python before attempting to run MontePython with Planck.

Best, Thejs

mahtaparsa commented 3 months ago

Hi, Actually there is a problem with "Planck_lowl_TT" likelihood. I have installed the planck likelihood successfully by running "./waf install". However, when I run "clik_example_C plik_rd12_HM_v22b_TTTEEE.clik/ ", the following error appears:

main(../src/clik_example_c.c:91)::ForwardError clik_init(../src/clik.c:57)::ForwardError cldf_open(../src/cldf/cldf.c:191)::ForwardError cldf_open_sub(../src/cldf/cldf.c:108)::Error -1234 (cannot stat file (error -1))

Thanks for you ideas and help.

brinckmann commented 3 months ago

Hi,

Can you run the example test scripts within the Planck likelihood to see if your installation works? If not, that's a Planck installation issue, not a MontePython issue.

Best, Thejs