LSSTDESC / augur

DESC forecasting and inference validation tool
MIT License
3 stars 2 forks source link

Removed parameter hardcoding from CCL cosmology initialization #53

Closed bruno-moraes closed 3 weeks ago

bruno-moraes commented 3 weeks ago

Cosmology parameters were hardcoded when initializing a CCL cosmology object in generate.py, preventing alternative runs (e.g. A_s instead of sigma8, m_nu, ...). This fix changed some of the cosmo_cfg dictionary entries to unify the treatment of the transfer_functionand extra_parameters keys, changed how the dictionary is passed to ccl.Cosmology and added a try-except clause to facilitate debugging for the user in the case of errors in the config file.

Related to #52

fjaviersanchez commented 3 weeks ago

Thanks a lot! It looks good to me :)