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

Closed
wants to merge 6 commits into 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
@damonge
Copy link
Collaborator

damonge commented Nov 14, 2024

Just doing some general cleaning of the repo.
This PR is very much behind the current master, so I will close it. The code within the branch could be valuable though, so I will not delete it, and we can reopen the PR if necessary.

@damonge damonge closed this Nov 14, 2024
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