Skip to content

Allowing for cross-correlations in HOD power spectrum.#1224

Merged
damonge merged 4 commits intomasterfrom
dev_hod_cross
Feb 13, 2025
Merged

Allowing for cross-correlations in HOD power spectrum.#1224
damonge merged 4 commits intomasterfrom
dev_hod_cross

Conversation

@anicola
Copy link
Contributor

@anicola anicola commented Feb 13, 2025

This PR allows for cross-correlations with different HOD profiles. In the case in which the profiles are different, the code reverts to the usual Fourier-space two-point moment as implemented in Profile2pt. This holds under the assumption that the two tracers are disjoint.

@anicola anicola requested a review from damonge February 13, 2025 12:40
@damonge
Copy link
Collaborator

damonge commented Feb 13, 2025

The code is fine, but there's a problem with conda. I'm trying to fix it, give me a few min (hopefully).

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.

Thanks a lot @anicola . Just one small comment.

The checks are only not passing because coveralls is down for maintenance, but we can ignore that, so don't worry.

p2.fourier_2pt(COSMO, 1., 1E13, 1., pgood, prof2=pgood_b)
# doesn't raise for two different HOD profiles
pgood_b.update_parameters(log10M0_0=10.)
p2.fourier_2pt(COSMO, 1., 1E13, 1., pgood, prof2=pgood_b)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we check that this gives the same result as the standard profile2pt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for going through the code and the comments David. Should be fixed now.

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 4aa9c0b into master Feb 13, 2025
2 of 3 checks passed
@damonge damonge deleted the dev_hod_cross branch February 13, 2025 18:56
RyoTerasawa added a commit that referenced this pull request Feb 13, 2025
Allowing for cross-correlations in HOD power spectrum. (#1224)
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.

2 participants