Fix failing test_transform_forward_healpix_iter
test
#258
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unfortunately recent merges seemed to have caused
test_transform_forward_healpix_iter
test intests/test_spherical_base.py
to begin failing for some parameter combinations (specifically whenn_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 largern_iter = 10
tested. I think this just an artefact of #252 having changed the specificflm
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 ton_iter = 8
fixes. I also noticed that we were testing withreality
parametrized to bothTrue
andFalse
, but as I think thehealpy
functions assume the signal is always real, I've reduced to just fixingreality = True
here.