-
Notifications
You must be signed in to change notification settings - Fork 2
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
Python harmonic #44
Python harmonic #44
Conversation
|
||
@fixture | ||
def rng(request): | ||
return np.random.default_rng(getattr(request.config.option, "randomly_seed", None)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yay for new numpy.random
😄
@mark.parametrize( | ||
"px2wav,wav2px", | ||
[ | ||
( | ||
partial(analysis_lm2lmn, spin=0, upsample=1, N=1), | ||
partial(analysis_adjoint_lmn2lm, spin=0, upsample=1, N=1), | ||
), | ||
( | ||
partial(analysis_lm2lmn, spin=2, upsample=1, N=1), | ||
partial(analysis_adjoint_lmn2lm, spin=2, upsample=1, N=1), | ||
), | ||
( | ||
partial(synthesis_adjoint_lm2lmn, spin=0, upsample=1, N=1), | ||
partial(synthesis_lmn2lm, spin=0, upsample=1, N=1), | ||
), | ||
( | ||
partial(synthesis_adjoint_lm2lmn, spin=2, upsample=1, N=1), | ||
partial(synthesis_lmn2lm, spin=2, upsample=1, N=1), | ||
), | ||
], | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noice, btw if you're not aware the library hypothesis is great for getting a test to run multiple circumstances
], | ||
) | ||
def test_axisym_adjoint( | ||
px2wav, wav2px, rng: np.random.Generator, L=10, B=2, J_min=2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
: would be great if typing was used everywhere 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments, otherwise good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
who has the authority to merge and deploy this? @mdavezac @jasonmcewen |
Carrying on from #22. Python wrappers for the wavelet transforms and adjoints in harmonic space. So far only had wrappers for the pixel space transforms. This goes some way towards #20