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

PowerSpectrum abc with arbitrary precision options. #1063

Draft
wants to merge 6 commits into
base: codata_v3
Choose a base branch
from

Conversation

nikfilippas
Copy link
Contributor

Just like with Baryons, HaloProfile, MassFunc etc. this PR introduces a PowerSpectrum base class which returns a Pk2D object containing the power spectrum of a particular model. The functions in boltzmann.py are now subclasses of the base class, which allows for easy model extension.

With this one, I ported the C code for the Eisenstein-Hu and BBKS fitting formulas to Python, into their own subclasses.
It also solves a long-standing issue, of passing arbitrary parameters to the models. For example, users can now exploit that to pass any precision parameter CLASS accepts.

Closes #588 , closes #424 .
May also address #114 if slightly modified.

@damonge
Copy link
Collaborator

damonge commented Apr 16, 2023

This is not to be reviewed until existing capabilities have been moved to v3. There is new science implementations that take priority.

@nikfilippas nikfilippas marked this pull request as draft April 17, 2023 16:33
@nikfilippas nikfilippas deleted the pspec_v3 branch May 16, 2023 15:04
@nikfilippas nikfilippas restored the pspec_v3 branch May 17, 2023 19:39
@nikfilippas nikfilippas reopened this May 17, 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.

Pass (more) CLASS accuracy parameters from pyccl Enable some non-vanilla dark matter options from CLASS
2 participants