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

Fix failing test_transform_forward_healpix_iter test #258

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

matt-graham
Copy link
Collaborator

Unfortunately recent merges seemed to have caused test_transform_forward_healpix_iter test in tests/test_spherical_base.py to begin failing for some parameter combinations (specifically when n_iter = 7). Looking at the failures I think these are spurious as the round-trip errors reported are still very small, but just not within the specified error tolerance, and they consistently are within the tolerance for the larger n_iter = 10 tested. I think this just an artefact of #252 having changed the specific flm values that will be generated (as the vectorized function draws variates in a different order) and I having chose the minimum number of iterations to test to be too small for the tolerance being checked. Slightly increasing the number of iterations to n_iter = 8 fixes. I also noticed that we were testing with reality parametrized to both True and False, but as I think the healpy functions assume the signal is always real, I've reduced to just fixing reality = True here.

Forces generated flm to always correspond to real signal.
Increases minimum number of iterations as test for round trip error bring within
tolerance sensitive to specific random draws for smaller number of iterations.
@matt-graham matt-graham added the bug Something isn't working label Dec 18, 2024
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.28%. Comparing base (a9e7c0c) to head (ecc0a72).
Report is 21 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #258      +/-   ##
==========================================
+ Coverage   96.21%   96.28%   +0.07%     
==========================================
  Files          32       32              
  Lines        3591     3606      +15     
==========================================
+ Hits         3455     3472      +17     
+ Misses        136      134       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jasonmcewen jasonmcewen self-requested a review December 18, 2024 18:09
Copy link
Collaborator

@CosmoMatt CosmoMatt left a comment

Choose a reason for hiding this comment

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

lgtm

@matt-graham matt-graham merged commit 876e090 into main Dec 18, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants