baudren / montepython_public

Public repository for the Monte Python Code
MIT License
65 stars 117 forks source link

Name 'data' is not defined #63

Open albin-n opened 8 years ago

albin-n commented 8 years ago

I am trying to run Monte Python for the first time (am using the Planck 2015 data release), but running the command python montepython/MontePython.py -o test/ -p base.param

throws the following error:

Traceback (most recent call last): File "montepython/MontePython.py", line 40, in sys.exit(run()) File "/home/koldrakan/Cosmological_Codes/montepython_public-2.2.2/montepython/run.py", line 31, in run custom_command) File "/home/koldrakan/Cosmological_Codes/montepython_public-2.2.2/montepython/run.py", line 188, in safe_initialisation cosmo, data, command_line, success = initialise(custom_command) File "/home/koldrakan/Cosmological_Codes/montepython_public-2.2.2/montepython/initialise.py", line 33, in initialise path = recover_local_path(command_line) File "/home/koldrakan/Cosmological_Codes/montepython_public-2.2.2/montepython/initialise.py", line 124, in recover_local_path exec(line) File "", line 1, in NameError: name 'data' is not defined `

I have made sure all the likelihoods are properly linked with clik, and am using the predefined parameter file. What could the problem be?