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

ENH(twopoint): function for binning two-point data #34

Merged
merged 1 commit into from
Sep 14, 2023
Merged

Conversation

ntessore
Copy link
Contributor

@ntessore ntessore commented Sep 13, 2023

Adds a new function bin2pt() that can be used to bin arrays of two-point data (i.e. data with one ell index). This function could be used in the two-point functions such as angular_power_spectra() and mixing_matrices() to directly produce (smaller) binned outputs.

The function is used by the existing binned_cls() function, as well as a new binned_mms() function for mixing matrices.

Closes: #31
Reviewed-by: Patrick Roddy [email protected]

@ntessore ntessore requested a review from paddyroddy September 13, 2023 13:49
Copy link
Member

@paddyroddy paddyroddy left a comment

Choose a reason for hiding this comment

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

Few thoughts

tests/test_twopoint.py Show resolved Hide resolved
tests/test_twopoint.py Show resolved Hide resolved
tests/test_twopoint.py Show resolved Hide resolved
@paddyroddy paddyroddy self-requested a review September 14, 2023 08:44
@ntessore ntessore merged commit 338c7e8 into main Sep 14, 2023
14 checks passed
@ntessore ntessore deleted the pr/gh-31 branch September 14, 2023 09:01
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.

angular binning for mixing matrices
2 participants