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

save CDM+baryon linear power spectrum #33

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

SebastianBocquet
Copy link
Contributor

So far, the class interface allows to store the total (linear) matter power spectrum. However, there are applications like the halo mass function where the power spectrum of CDM+baryons is needed. The camb interface already allows to store the cdm+baryons linear power spectrum, this PR allows to do the same for class (using the same variable name cdm_baryon_power_lin). Thanks also to @asmaamaz

@joezuntz
Copy link
Owner

This looks great, thanks so much! One request before I merge - could you make this optional, with it switched off by default, since it seems to take a bit of extra time to compute that not everyone will need. e.g. you could add a boolean configuration parameter save_cdm_baryon_power or something like that?

@SebastianBocquet
Copy link
Contributor Author

Good idea. I've added save_matter_power_lin (defaults to True) and save_cdm_baryon_power_lin (defaults to False). This way, the old setup is run by default.

@joezuntz joezuntz merged commit a934ce1 into joezuntz:main Aug 26, 2022
@joezuntz
Copy link
Owner

Thanks, this is great!

@SebastianBocquet SebastianBocquet deleted the class_cb_powerspectrum branch August 29, 2022 07:06
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