Skip to content

fixing normalisation issue of trispectrum in halomodel#1248

Merged
rreischke merged 1 commit intomasterfrom
issue_4ptfunction
Jun 10, 2025
Merged

fixing normalisation issue of trispectrum in halomodel#1248
rreischke merged 1 commit intomasterfrom
issue_4ptfunction

Conversation

@rreischke
Copy link
Contributor

There existed an issue of the amplitude of the trispectrum for the case of matter, matter, HOD, matter (found by Davide Sciotti), giving way too large values for the trispectrum in that case.

Reason: _get_norms assigned a wrong norm in this case. In particular, the code asks if profile_1 and profile_4 are the same but assigns norm_4 to norm_3 instead of norm_1. Due to the structure of the matter, matter, HOD, matter, this would assign the HOD norm twice in this case.

After the fix, the amplitudes of the trispectra are consistent.

@rreischke rreischke requested a review from carlosggarcia June 9, 2025 18:29
@coveralls
Copy link

Pull Request Test Coverage Report for Build 15541749559

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 97.459%

Totals Coverage Status
Change from base Build 14732172638: 0.0%
Covered Lines: 6559
Relevant Lines: 6730

💛 - Coveralls

Copy link
Collaborator

@carlosggarcia carlosggarcia left a comment

Choose a reason for hiding this comment

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

Good catch!
LGTM!

@rreischke rreischke merged commit 8929bf4 into master Jun 10, 2025
4 checks passed
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.

3 participants