BUG: Fixed wavenumber definition and amplitude scaling in Eisenstein & Hu model#445
Merged
rrjbca merged 5 commits intoMar 5, 2021
Merged
Conversation
rrjbca
requested changes
Mar 4, 2021
rrjbca
left a comment
Contributor
There was a problem hiding this comment.
Some suggestions for improved clarity. Could you also confirm where the updated numerical values for test_eisenstein_hu came from? Did you re-calculate them using cosmosis for the correct wavenumbers?
Lucia-Fonseca
previously requested changes
Mar 4, 2021
Review does not request any changes
rrjbca
requested changes
Mar 5, 2021
rrjbca
approved these changes
Mar 5, 2021
rrjbca
left a comment
Contributor
There was a problem hiding this comment.
Looks great thanks @jucordero @Lucia-Fonseca @ntessore for working on this
3 tasks
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.
Description
The Eisenstein & Hu approximation for the linear matter power spectrum now assumes the input wavenumber vector to be in units of Mpc instead of Mpc/h (See ADR-2)
The overall amplitude was also missing factors of h. This has now been fixed such that multiplying
eisenstein_huby the square ofgrowth_function_carrollgives a power spectrum that closely matches CAMB and CLASS.This addresses issue #442
Returns a power spectrum which has the correct wavenumbers and amplitude

Checklist