-
Notifications
You must be signed in to change notification settings - Fork 14
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
stitching #29
stitching #29
Conversation
Hi Oleh, thanks again for this pull request! As next step, we can work on two items:
Filename: import numpy as np
import stitch from ptychography.stitching.stitching
def test_stitching():
known_good = ...
your_result = stitch(...)
assert np.allclose(known_good, your_result) Basically a function that will throw an exception in case the actual result is different from the known good one. Pytest can do a lot more for complex test scenarios, but I think in this case the basic pattern will do just fine. :-) You can run it like this: |
Hi @Sniper2k, I just merged #25 that also included changes to the testing setup which should fix the issues you experienced. In order to apply these changes to your branch, you can rebase your branch on the current master:
|
Hi @uellue, Thanks for the detailed explanation! |
Great to hear, looks good to me! @sk1p , @SimeonEhrig would you also like to do a code review or do you think this can be merged like that? |
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.
Looks good to me! The comments on the stitch
function could be put into a docstring (https://numpydoc.readthedocs.io/en/latest/format.html), but that's mostly cosmetics.
Co-authored-by: Alexander Clausen <alex@gc-web.de>
@Sniper2k if this is ready for merging also from your perspective, you can mark it as "ready for review", i.e. not a draft PR anymore. :-) |
Thank you, merging! 🚀 |
Contributor Checklist: