brinckmann / montepython_public

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

Print cosmology before evaluating loglkl #313

Closed EBHolm closed 1 year ago

EBHolm commented 1 year ago

Can now be run as

python montepython_public/montepython/MontePython.py -p XXX.param -o XXX --print-cosmo

This creates a file (with the name XXX_1.cosmo) for every ordinary chain file (named XXX_1.txt) which contains exactly the same information, but writes a new line every time the cosmology is being loaded, before CLASS is executed with it. Thus, to track down CLASS errors, one can look in the last line of XXX_1.cosmo for a crashed run and rerun CLASS with the offending input outside of MontePython.

EBHolm commented 1 year ago

Closed, this was intended for a forked repository :)