Hi!
After a few days bashing my head agains the wall to get Multinest to work, always finding the classic:
/!\ PyMultiNest detected but MultiNest likely not installed correctly. You can
safely ignore this if not running with option -m NS
I tried to reverse engineer the error and noticed this:
In [1]: from MultiNest import NS_prefix, NS_user_arguments
Traceback (most recent call last):
File ~/.local-co/envs/env/lib/python3.10/site-packages/IPython/core/interactiveshell.py:3579 in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
Cell In[1], line 1
from MultiNest import NS_prefix, NS_user_arguments
File ~/Github/montepython_public/montepython/MultiNest.py:98
'base_dir': {'type': str}
^
SyntaxError: invalid syntax. Perhaps you forgot a comma?
Indeed, there's a comma missing in line 98:
NS_auto_arguments = {
'base_dir': {'type': str}
'n_dims': {'type': int},
'n_params': {'type': int},
'verbose': {'type': str2bool},
'outputfiles_basename': {'type': str},
'init_MPI': {'type': str2bool}
}
specifically after 'base_dir': {'type': str} . Happy to send a PR once I figure out why the Planck Likelihood still doesn't run with Multinest.
Hi!
After a few days bashing my head agains the wall to get Multinest to work, always finding the classic:
I tried to reverse engineer the error and noticed this:
Indeed, there's a comma missing in line 98:
specifically after
'base_dir': {'type': str}. Happy to send a PR once I figure out why the Planck Likelihood still doesn't run with Multinest.