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

Super Sample Covariance with linear galaxy bias approximation #947

Merged
merged 8 commits into from
Jun 28, 2022

Conversation

carlosggarcia
Copy link
Contributor

@carlosggarcia carlosggarcia commented Jun 27, 2022

As a first implementation in TJPCov, in order to avoid the user to have to define several halo model parameters, it might be useful to have an approximation of the SSC. What I have implemented here is tkk_ssc ~ b1 * b2 * First_term_for_a_NFW_profile + (b1 * delta_1_nc + b2 * delta_2_nc) * Pmm_for_a_NFW_profile (see Eq. A13 in 1601.05779), where delta_1_nc = 1 if the first quantity is for number counts and 0 if not.

I have also fixed the docstring for the SSC trispectrum function.

@coveralls
Copy link

coveralls commented Jun 27, 2022

Pull Request Test Coverage Report for Build 2575225889

  • 62 of 64 (96.88%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.004%) to 97.102%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pyccl/halos/halo_model.py 62 64 96.88%
Totals Coverage Status
Change from base Build 2542833097: -0.004%
Covered Lines: 4557
Relevant Lines: 4693

💛 - Coveralls

pyccl/halos/halo_model.py Show resolved Hide resolved
pyccl/halos/halo_model.py Outdated Show resolved Hide resolved
pyccl/halos/halo_model.py Outdated Show resolved Hide resolved
pyccl/halos/halo_model.py Outdated Show resolved Hide resolved
pyccl/halos/halo_model.py Outdated Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Outdated Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Outdated Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Show resolved Hide resolved
@carlosggarcia
Copy link
Contributor Author

@damonge back to you!

pyccl/halos/halo_model.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@damonge damonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, looking good! Just a couple of final comments

pyccl/halos/halo_model.py Show resolved Hide resolved
pyccl/tests/test_tkkssc.py Outdated Show resolved Hide resolved
@carlosggarcia
Copy link
Contributor Author

@damonge back to you!

Copy link
Collaborator

@damonge damonge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@damonge damonge merged commit d5408a7 into master Jun 28, 2022
@damonge damonge deleted the ssc_linear_bias branch June 28, 2022 18:21
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.

None yet

3 participants