Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed parameter hardcoding from CCL cosmology initialization #53

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

bruno-moraes
Copy link
Collaborator

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_function and 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

@bruno-moraes bruno-moraes added the enhancement New feature or request label Jul 4, 2024
@bruno-moraes bruno-moraes self-assigned this Jul 4, 2024
@fjaviersanchez
Copy link
Collaborator

Thanks a lot! It looks good to me :)

@bruno-moraes bruno-moraes merged commit 5457456 into master Jul 4, 2024
1 check passed
@bruno-moraes bruno-moraes deleted the cosmo_config_fix branch July 4, 2024 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants