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

Fix theta_H0_range usage by adding a key to dict #48

Merged
merged 3 commits into from
Mar 13, 2023

Conversation

msyriac
Copy link
Contributor

@msyriac msyriac commented Jan 8, 2023

This seems to be necessary for 'theta_H0_range' to be implemented correctly. The H0 values need to be a list for the dict entry more_config['cosmology_params']['theta_H0_range'], not for more_config['cosmology_params']['theta_H0_range'], otherwise you end up passing a list to camb.set_cosmology instead of keyword arguments.

This seems to be necessary for 'theta_H0_range' to be implemented correctly. The H0 values need to be a list for the dict entry `more_config['cosmology_params']['theta_H0_range']`, not for `more_config['cosmology_params']['theta_H0_range']`, otherwise you end up passing a list to camb.set_cosmology instead of keyword arguments.
@joezuntz
Copy link
Owner

joezuntz commented Jan 9, 2023

Hi Mat,

This looks great, thanks! Just to demonstrate it could you add the theta_H0_range parameter to the camb section in e.g. examples/planck.ini so that it gets run in the tests?

Cheers!
Joe

This will ensure it gets run with the tests.
@msyriac
Copy link
Contributor Author

msyriac commented Jan 9, 2023

Done!

@joezuntz joezuntz merged commit d7a2052 into joezuntz:main Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants