Comments (6)
Hi,
It looks like MontePython cannot find your Planck installation. Are you sure you have correctly installed and sourced the Planck likelihoods? Make sure the path to your Planck likelihoods is correctly set in default.conf and are correctly sourced:
e.g. in default.conf I have:
path['clik'] = '/home/usr/software/plc-2.0/'
and in my ~/.zshrc file (I use zsh in this case) I have:
source /home/usr/software/plc-2.0/bin/clik_profile.zsh
Also I see you are using v3.0.1 and would recommend updating to MontePython v3.1 (but that has no bearing on this issue).
Best,
Thejs
from montepython_public.
Hi?
I have a similar issue as is asked above. Any solution?
My default.conf file looks:
`
root = '/Users/kosmos'
path['cosmo'] = root+'/Documents/class_public/'
#path['cosmo'] = root+'/hi_class_public/'
path['clik'] = root+'/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/'
path['JLA']. = root+'/montepython_public_3.2dev_Python3/data/JLA/'
path['Pantheon'] = root+'/montepython_public_3.2dev_Python3/data/Pantheon/'
`
and I have no problem using JLA (have not checked the Pantheon data yet)
Also, in my ~/.bash_rc file, I have
source /Users/kosmos/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_profile.sh
but I still get the following message when running MP:
`kosmos$ mpirun -np 4 python montepython/MontePython.py run -p input/example.param -o my_example/ -N 1000
Running Monte Python v3.2.0
with CLASS v2.9.3
/!\ Detecting empty folder, logging the parameter file
Testing likelihoods for:
->
fake_planck_bluebook, Planck_lensing
Initialised likelihood_mock_cmb with following options:
unlensed_clTTTEEE is False
Bmodes is False
delensing is False
LensingExtraction is False
neglect_TD is True
ExcludeTTTEEE is False
OnlyTT is False
Traceback (most recent call last):
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/likelihood_class.py", line 885, in init
self.clik = clik.clik_lensing(self.path_clik)
AttributeError: module 'clik' has no attribute 'clik_lensing'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "montepython/MontePython.py", line 38, in
sys.exit(mpi_run())
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/run.py", line 101, in mpi_run
custom_command, comm, nprocs)
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/run.py", line 191, in safe_initialisation
cosmo, data, command_line, success = initialise(custom_command)
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/initialise.py", line 66, in initialise
data = Data(command_line, path)
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/data.py", line 363, in init
self.initialise_likelihoods(self.experiments)
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/data.py", line 492, in initialise_likelihoods
elem, elem, folder, elem))
File "", line 1, in
File "/Users/kosmos/montepython_public_3.2dev_Python3/montepython/likelihood_class.py", line 896, in init
except clik.lkl.CError:
AttributeError: module 'clik' has no attribute 'lkl' `
Thank you in advance for your help.
Cheers!
Gansukh.T
from montepython_public.
Something is incorrect with the Planck installation or the paths you give MontePython. Check that the paths are correct and point to the correct files. Also check that the Planck likelihoods were compiled and sourced correctly and can be called.
Best,
Thejs
from montepython_public.
Thank you, Thejs, for your kind reply.
I have checked the path I have given MontePython, which looks to be correct to me. Is there any other way (rather than looking into default.conf and confirming it with the actual path) for checking whether paths to Planck that I give to MontePython are being correctly called?
Now, it lets me think whether, or not, my Planck installation is correct. Since I am not sure Planck likelihoods are compiled and sourced correctly, and if you do not mind having a look, I am showing my steps on how I installed the Planck in the following.
$ ./waf configure --cfitsio_prefix=/Users/R1007/Documents/cfitsio-3.48/
Setting top to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01
Setting out to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/build
Checking for program 'gcc, cc' : /usr/local/bin/gcc-7
Checking for program 'ar' : /usr/bin/ar
Check gcc version : 7.5.0
Compile a test code with gcc :
yes
Setting architecture flag to : ['-arch', 'x86_64']
Checking for program 'ifort' : /usr/local/bin/gfortran-7
ifort not found, defaulting to gfortran (cause: 'cannot determine ifort version.
(complete log in /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/build/config.log)')
Checking for program 'gfortran, g77' : /usr/local/bin/gfortran-7
Checking for program 'ar' : /usr/bin/ar
Check gfortran version : not found, let's hope for the best...
Compile a test code with gfortran : yes
retrieve gfortran link line : ok
fortran link line : -L/usr/local/Cellar/gcc@7/7.5.0_2/lib/gcc/7 -lgfortran -lgomp
Setting install root to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01
Setting install bin directory to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin
Setting install lib directory to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib
Setting install include directory to : /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/include
Checking for program 'python' : /opt/anaconda3/bin/python
Checking for python version : 3.7.6
python-config : /opt/anaconda3/bin/python3.7-config
Asking python-config for pyembed '--cflags --libs --ldflags --embed' flags : not found
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration : yes
Checking for library dl : yes
checking for RTLD_DEFAULT in dl : yes
compile with debug option : OFF
Checking for program 'pmc-config' : not found
Checking for library pmc : not found
Check apple lapack : ok
Checking for library ['BLAS', 'LAPACK'] : yes
checking for function 'dposv' : yes
checking for function 'dtrsv' : yes
checking for function 'dpotrf' : yes
checking for function 'dpotrs' : yes
checking for function 'dpotri' : yes
checking for function 'dtrtri' : yes
checking for function 'dtrmm' : yes
checking for function 'dtrmv' : yes
checking for function 'dgeqrf' : yes
checking for function 'dormqr' : yes
checking for function 'dsyev' : yes
checking for function 'dgesvd' : yes
checking for function 'dsymv' : yes
checking for function 'dgemv' : yes
checking for function 'dgemm' : yes
checking for function 'dsyrk' : yes
checking for function 'dsyr2k' : yes
checking for function 'daxpy' : yes
checking for function 'dtrsm' : yes
checking for function 'dsymm' : yes
checking for function 'dsyr' : yes
checking for function 'ddot' : yes
checking for function 'dsyevd' : yes
checking for function 'dlamch' : yes
checking for function 'dsyevr' : yes
Checking for library ['cfitsio'] : yes
checking for function 'fits_init_cfitsio' : yes
Python version allows for automatic install : yes (3.7.6)
Checking for program 'python' : /opt/anaconda3/bin/python
Checking python module 'numpy' : ok
Checking python module 'astropy' : ok
Checking for program 'python' : /opt/anaconda3/bin/python
Checking python module 'cython' : ok
Checking python module 'cython' : ok
Checking cython version (>0.28) : 0.29.15
Checking for program 'cython' : /opt/anaconda3/bin/cython
Add plugin : 'rel2015' : ok
*----------------------------------------------------*
| |
| Configure step ok. |
| |
| run './waf install' now ! |
| |
*----------------------------------------------------*
'configure' finished successfully (4.396s)
as you can see, everything looks to be okay except "ifort is not found" and " Check gfortran version: not found, let's hope for the best..."
Then, considering it succeeded, I did the following step:
$ ./waf install
Waf: Entering directory `/Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/build'
add plik/component_plugin/rel2015/fg2015.c
add plik/component_plugin/rel2015/corrnoise.c
add plik/component_plugin/rel2015/leakage.c
[ 1/141] Compiling src/python/clik/lkl.pyx
[ 2/141] Compiling src/python/clik/lkl_lensing.pyx
[ 3/141] Compiling src/python/clik/parametric.pyx
[ 4/141] Compiling src/plik/component_plugin/rel2015/rel2015.pyx
[ 5/141] Processing src/lowlike/Planck_options.F90
[ 6/141] Processing src/actspt/Highell_options.F90
[ 7/141] Processing src/actspt/Highell_subroutines.F90
[ 8/141] Processing src/gibbs/comm_gauss_br_mod.f90
[ 9/141] Processing src/gibbs/comm_gauss_br_mod_v3.f90
[ 10/141] Processing src/gibbs/comm_lowl_mod_dist.f90
[ 11/141] Processing src/gibbs/comm_br_mod.f90
[ 12/141] Processing src/cmbonly/plik_cmbonly.f90
[ 13/141] Processing src/camspec/CAMspec.f90
[ 14/141] Processing src/camspec/temp_like.f90
[ 15/141] Processing src/camspec/temp_like_v3.f90
[ 16/141] Processing src/bflike/healpix_types.f90
[ 17/141] Compiling src/lowlike/read_archive_map.f90
[ 18/141] Processing src/lowlike/br_mod_dist.f90
[ 19/141] Processing src/lowlike/Planck_teeebb_pixlike.F90
[ 20/141] Processing src/actspt/Foregrounds_loading.F90
/opt/anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/plik/component_plugin/rel2015/rel2015.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
[ 21/141] Processing src/gibbs/clik_gibbs.f90
[ 22/141] Processing src/bflike/long_intrinsic_smw.f90
[ 23/141] Processing src/cmbonly/clik_cmbonly.f90
[ 24/141] Compiling src/lowlike/read_fits.f90
[ 25/141] Processing src/actspt/ACT_south_likelihood.F90
[ 26/141] Processing src/actspt/ACT_equa_likelihood.F90
[ 27/141] Processing src/actspt/SPT_keisler_likelihood.F90
[ 28/141] Processing src/actspt/SPT_reichardt_likelihood.F90
[ 29/141] Processing src/bflike/fitstools_smw.f90
[ 30/141] Processing src/lowlike/Planck_likelihood.F90
[ 31/141] Processing src/camspec/clik_CAMspec.F90
[ 32/141] Processing src/clik.F90
[ 33/141] Compiling build/src/python/clik/__pycache__/miniparse.cpython-37.pyo
[ 34/141] Compiling build/src/python/clik/__pycache__/__init__.cpython-37.pyc
[ 35/141] Processing src/actspt/Highell_likelihood.F90
[ 36/141] Processing src/lowlike/clik_lowlike.f90
[ 37/141] Compiling build/src/python/clik/__pycache__/smicahlp.cpython-37.pyc
[ 38/141] Compiling build/src/python/clik/__pycache__/cldf.cpython-37.pyc
[ 39/141] Processing src/plik/clik_plik.f90
[ 40/141] Compiling src/clik_example_f90.f90
[ 41/141] Processing src/actspt/clik_actspt.f90
[ 42/141] Compiling build/src/python/clik/__pycache__/smicahlp.cpython-37.pyo
[ 43/141] Compiling build/src/python/clik/__pycache__/hpy.cpython-37.pyc
[ 44/141] Compiling build/src/python/clik/__pycache__/hpy.cpython-37.pyo
/opt/anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl_lensing.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl_lensing.pyx:51:13: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl_lensing.pyx:51:19: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl_lensing.pyx:151:13: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl_lensing.pyx:151:19: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
[ 45/141] Processing src/bflike/bflike_QUonly.f90
/opt/anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl.pyx:49:13: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl.pyx:49:19: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl.pyx:207:13: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
warning: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/lkl.pyx:207:19: Non-trivial type declarators in shared declaration (e.g. mix of pointers and values). Each pointer declaration should be on its own line.
[ 46/141] Processing src/bflike/bflike.f90
[ 47/141] Processing src/bflike/bflike_smw.f90
[ 48/141] Compiling build/src/python/clik/__pycache__/__init__.cpython-37.pyo
[ 49/141] Compiling build/src/python/clik/__pycache__/cldf.cpython-37.pyo
[ 50/141] Compiling build/src/python/clik/__pycache__/parobject.cpython-37.pyc
[ 51/141] Compiling build/src/python/clik/__pycache__/parobject.cpython-37.pyo
[ 52/141] Compiling build/src/python/clik/__pycache__/miniparse.cpython-37.pyc
[ 53/141] Compiling src/python/tools/clik_change_lrange_bychannel_pol.py
[ 54/141] Compiling src/python/tools/clik_change_lrange.py
[ 55/141] Compiling src/python/tools/clik_get_selfcheck.py
[ 56/141] Compiling src/python/tools/prepare_wmap.py
[ 57/141] Compiling src/python/tools/clik_example_py.py
[ 58/141] Compiling src/python/tools/clik_print.py
[ 59/141] Compiling src/python/tools/clik_explore_1d.py
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/include/clik_lensing.h (from src/clik_lensing.h)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/include/clik.h (from src/clik.h)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/include/errorlist.h (from src/minipmc/errorlist.h)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/hpy.cpython-37.pyo (from build/src/python/clik/__pycache__/hpy.cpython-37.pyo)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/__init__.cpython-37.pyo (from build/src/python/clik/__pycache__/__init__.cpython-37.pyo)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/hpy.py (from src/python/clik/hpy.py)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/smicahlp.py (from src/python/clik/smicahlp.py)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/cldf.cpython-37.pyo (from build/src/python/clik/__pycache__/cldf.cpython-37.pyo)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/hpy.cpython-37.pyc (from build/src/python/clik/__pycache__/hpy.cpython-37.pyc)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/cldf.py (from src/python/clik/cldf.py)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/smicahlp.cpython-37.pyo (from build/src/python/clik/__pycache__/smicahlp.cpython-37.pyo)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/miniparse.cpython-37.pyo (from build/src/python/clik/__pycache__/miniparse.cpython-37.pyo)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/parobject.cpython-37.pyc (from build/src/python/clik/__pycache__/parobject.cpython-37.pyc)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/miniparse.py (from src/python/clik/miniparse.py)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/parobject.py (from src/python/clik/parobject.py)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/parobject.cpython-37.pyo (from build/src/python/clik/__pycache__/parobject.cpython-37.pyo)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/__init__.cpython-37.pyc (from build/src/python/clik/__pycache__/__init__.cpython-37.pyc)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__init__.py (from src/python/clik/__init__.py)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/cldf.cpython-37.pyc (from build/src/python/clik/__pycache__/cldf.cpython-37.pyc)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/smicahlp.cpython-37.pyc (from build/src/python/clik/__pycache__/smicahlp.cpython-37.pyc)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/tsz_143_eps0.50.dat (from src/plik/component_plugin/rel2015/tsz_143_eps0.50.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/sz_x_cib_template.dat (from src/plik/component_plugin/rel2015/sz_x_cib_template.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/ksz_fromcamspec.dat (from src/plik/component_plugin/rel2015/ksz_fromcamspec.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/cib_1h_2h_100_353_Jsr-1_PS_2014_09.dat (from src/plik/component_plugin/rel2015/cib_1h_2h_100_353_Jsr-1_PS_2014_09.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/sky_template_v15_F100_143_217_353.dat (from src/plik/component_plugin/rel2015/sky_template_v15_F100_143_217_353.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/cnoise_F100_143_217_353_v17.dat (from src/plik/component_plugin/rel2015/cnoise_F100_143_217_353_v17.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/cleak_eh_rd12rc3_v1.dat (from src/plik/component_plugin/rel2015/cleak_eh_rd12rc3_v1.dat)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_change_lrange_bychannel_pol (from build/src/python/clik_change_lrange_bychannel_pol)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/cnoise_e2e_v2.dat (from src/plik/component_plugin/rel2015/cnoise_e2e_v2.dat)
- install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/share/clik/rel2015/sbpx_tmpl_v4_hm.dat (from src/plik/component_plugin/rel2015/sbpx_tmpl_v4_hm.dat)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_change_lrange (from build/src/python/clik_change_lrange)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_get_selfcheck (from build/src/python/clik_get_selfcheck)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/prepare_wmap (from build/src/python/prepare_wmap)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_example_py (from build/src/python/clik_example_py)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_print (from build/src/python/clik_print)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_explore_1d (from build/src/python/clik_explore_1d)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/__pycache__/miniparse.cpython-37.pyc (from build/src/python/clik/__pycache__/miniparse.cpython-37.pyc)
/opt/anaconda3/lib/python3.7/site-packages/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/src/python/clik/clik.parametric.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
[ 87/141] Compiling src/plik/component_plugin/rel2015/corrnoise.c
[ 88/141] Compiling src/lenslike/plenslike/plenslike_dat_quad.c
[ 89/141] Compiling src/minipmc/distribution.c
[ 90/141] Compiling src/plik/clik_parametric.c
[ 91/141] Compiling src/cldf/cldf.c
[ 92/141] Compiling src/lenslike/plenslike/plenslike_dat_mono.c
[ 93/141] Compiling src/cmbonly/clik_cmbonly.c
[ 94/141] Compiling src/minipmc/errorlist.c
[ 95/141] Compiling src/bflike/clik_bflike.c
[ 96/141] Compiling src/actspt/clik_actspt.c
[ 97/141] Compiling src/lenslike/plenslike/wignerd.c
[ 98/141] Compiling src/plik/clik_parametric_addon.c
[ 99/141] Compiling src/simall/clik_simall.c
[100/141] Compiling src/plik/clik_hfipack.c
[101/141] Compiling src/plik/clik_plik.c
[102/141] Compiling src/lklbs.c
[103/141] Processing src/bflike/clik_bflike.f90
[104/141] Compiling src/plik/smica.c
[105/141] Compiling src/plik/component_plugin/rel2015/fg2015.c
[106/141] Compiling src/lenslike/plenslike/plenslike_dat_full.c
[107/141] Compiling src/lenslike/plenslike/qest.c
[108/141] Compiling src/lowly_common.c
[109/141] Compiling src/lenslike/plenslike/plenslike_dat_qecl.c
[110/141] Compiling src/minipmc/io.c
[111/141] Compiling src/gibbs/clik_gibbs.c
[112/141] Compiling src/clik.c
[113/141] Compiling src/camspec/clik_CAMspec.c
[114/141] Compiling src/cldf/cfrd.c
[115/141] Compiling src/clik_lensing.c
[116/141] Compiling src/clik_helper.c
[117/141] Compiling src/lowlike/clik_lowlike.c
[118/141] Compiling src/clik_dic.c
[119/141] Compiling src/plik/component_plugin/rel2015/leakage.c
[120/141] Compiling src/clik_fortran.c
[121/141] Compiling src/clik_example_c.c
[122/141] Compiling build/src/python/clik/lkl.pyx.c
[123/141] Compiling build/src/python/clik/lkl_lensing.pyx.c
[124/141] Compiling build/src/python/clik/parametric.pyx.c
[125/141] Compiling build/src/plik/component_plugin/rel2015/rel2015.pyx.c
[126/141] Linking build/src/libclik.dylib
In file included from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/python/clik/lkl.pyx.c:598:
/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
In file included from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/python/clik/lkl_lensing.pyx.c:598:
/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
[127/141] Linking build/src/libclik_f90.dylib
[128/141] Linking build/src/clik_example_C
[129/141] Linking build/src/python/lkl.cpython-37m-darwin.so
[130/141] Linking build/src/python/lkl_lensing.cpython-37m-darwin.so
[131/141] Linking build/src/python/rel2015.cpython-37m-darwin.so
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/libclik.dylib (from build/src/libclik.dylib)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_example_C (from build/src/clik_example_C)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/rel2015.cpython-37m-darwin.so (from build/src/python/rel2015.cpython-37m-darwin.so)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/lkl.cpython-37m-darwin.so (from build/src/python/lkl.cpython-37m-darwin.so)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/lkl_lensing.cpython-37m-darwin.so (from build/src/python/lkl_lensing.cpython-37m-darwin.so)
[137/141] Linking build/src/clik_example_f90
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/libclik_f90.dylib (from build/src/libclik_f90.dylib)
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_example_f90 (from build/src/clik_example_f90)
In file included from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1832:0,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
from src/python/clik/parametric.pyx.c:600:
/opt/anaconda3/lib/python3.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
#warning "Using deprecated NumPy API, disable it with " \
^~~~~~~
[140/141] Linking build/src/python/parametric.cpython-37m-darwin.so
+ install /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/lib/python/site-packages/clik/parametric.cpython-37m-darwin.so (from build/src/python/parametric.cpython-37m-darwin.so)
Waf: Leaving directory `/Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/build'
*----------------------------------------------------*
| |
| Source clik_profile.sh (or clik_profile.csh) |
| to set the environment variables needed by clik |
| |
*----------------------------------------------------*
'install' finished successfully (5.549s)
To me, except for a few warnings, it seems to be completed okay. And even source bin/clik_profile.sh
went okay.
I also added
source /Users/R1007/Documents/montepython_public_3.2dev_Python3/planck/code/plc_3.0/plc-3.01/bin/clik_profile.sh
to my ~/.bash_profile file and did source ~/.bash_profile file as well.
Is there any other way of checking whether Planck likelihoods are compiled, source, and called correctly by MontePython?
Thank you once again for your kind help.
Best,
Gansukh T
from montepython_public.
Hi Gansukh,
When calling the Planck likelihood from MontePython, you need to make sure you are using the same Python versions: here you compiled plc with Python 3.7.6, but you appear to be running with MP version 3.2, which predates Python 3 support. Try updating to the latest version of MP (3.4.0) which you can then run with Python 3, or recompile the Planck likelihood with Python 2.
Best,
Deanna
from montepython_public.
Dear Deanna,
Thank you for your kind response. Maybe you are right. Let me check following your comment.
Best,
Gansukh. T
from montepython_public.
Related Issues (20)
- help on the usage of KiDS-1000 for montepython HOT 3
- Problem with Planck Likelihood and clik wrapper HOT 3
- shooting failed while constraining a new density parameter HOT 2
- AttributeError: module 'clik' has no attribute 'lkl' HOT 5
- Problem with Planck_highl_TTTEEE Lilelihood HOT 1
- How to do Fisher analysis in Montepython? HOT 2
- Problems with Pantheon+ and wCDM HOT 1
- Analyzing running Multinest chain HOT 2
- How to apply other parameter file? HOT 3
- info --want-covmat gives error with modified data.py HOT 5
- Root finding generating trouble HOT 1
- Planck 2020: npipe HOT 1
- A problem when using sdss lrgDR7 data in montepython HOT 3
- Problems with PlanckTTTEEE+Pantheon HOT 3
- Could not find sBBN_2017.dat HOT 7
- ./waf install HOT 2
- Using the created covariance matrix HOT 7
- Covariance Matrix in the CLP HOT 4
- bao_angular likelihood not working HOT 2
- Add BK18 likelihood
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from montepython_public.