gh-404: Implement mochi class emulator - #417
Open
LisaGoh wants to merge 47 commits into
Open
Conversation
first commit; added mochi_class protocol file
…mg and get_background functions
Sorry my bad I realised doing this would break compatibility with the rest of the Background Protocols, so I fixed the bug in the mochi_class_cosmology.py script instead!
So that cloelib would not throw an TypeError when the Omega_m(z) method is called in photo.py
…ed it to private repo
Member
|
This needs to be updated when #352 is merged. |
Collaborator
Author
|
Heyoo @gcanasherrera I've updated this branch since #352 is now closed! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🚀 Pull Request Checklist
✅ Summary
This PR solves issue #404.
🔄 Changes
Incorporated an emulator for the linear power spectrum calculated by mochi_CLASS (the
mochiCLASSEmuLinearPerturbationsclass), trained using Cosmopower. Currently, it is implemented for the stable basis parametrisation of Lombriser et al. 2019 (varying s, a0, a1) + w0wacdm background (w0,wa), for fixed cosmology parameters (Planck 2018 fiducial). It currently only returns the linear matter power spectrum (no sigma8, nor fsigma8).🛠 How to Test
📝 Documentation
🏗 Related Issues
Resolves #404
📸 Screenshots (if applicable)
📌 Additional Notes
✅ PR Checklist for Developers
pre-commit run --all-files✅ PR Checklist for Reviewers
playgroundwill be updated in a corresponding follow-up PRREADME.mdfile