-
Notifications
You must be signed in to change notification settings - Fork 25
ENH: Add image-management helper functions #77
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: Add image-management helper functions #77
Conversation
Hello @dPys, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2020-03-24 19:07:28 UTC |
a22eccf
to
6c752f1
Compare
Codecov Report
@@ Coverage Diff @@
## master #77 +/- ##
==========================================
+ Coverage 51.64% 53.72% +2.08%
==========================================
Files 21 21
Lines 1218 1275 +57
Branches 161 171 +10
==========================================
+ Hits 629 685 +56
+ Misses 578 570 -8
- Partials 11 20 +9
Continue to review full report at Codecov.
|
6c752f1
to
5f5ebb1
Compare
Added a bunch of mostly nitpicking comments and made some suggestions to help shorten the line lengths for your docstrings. |
5f5ebb1
to
3bee02d
Compare
Thanks @josephmje . I've updated the PR with your review. |
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.
Thanks @dPys . Looks good to me.
See travis errors in nipreps#76,nipreps#77, nipreps#78, etc.
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. I would improve docstrings and adding unit tests would be very much appreciated. Also left some food for thoughts regarding the nibabel manipulations - they'd better be within Nipype.
Awesome, I think I have all the feedback I need now to finish polishing the docstring, and include some doctests. |
@josephmje -- I went ahead on the latest commit and modified the out_path behavior, but now I see that you have been tackling this in #81 . Would you mind looking at the most recent commit here to see if this is what we want? if so, we can figure out whether we want to indeed just incorporate those changes in #81 or perhaps just keep them here since they are relatively minor tweaks that also now include docstring. |
Thanks @dPys ! The docstrings look good. But I don't think the else statement will work if |
Yeah the way you have it in #81 looks good!I plan to work on this tomorrow before we meet so can try to commit my changes, which include docstring and doc-tests, tomorrow morning |
@josephmje @oesteban -- I've added all doctests for this and rebased the PR to the changes already merged in #81, which I noticed was already closed. Folks may want to quickly skim, but assuming all tests pass, this should be okay to merge? |
a70374f
to
7767498
Compare
517cc39
to
fed3891
Compare
fed3891
to
6ed9f96
Compare
Co-Authored-By: Oscar Esteban <[email protected]> Co-Authored-By: Ariel Rokem <[email protected]>
6ed9f96
to
bdd8802
Compare
This one seemed reasonably easy to rebase and keep around. Most of this will eventually go to a more general purpose module, but I think there's a net benefit in merging the rebased version. Thanks a lot! |
The helper functions are included in a new module utils/images.py, which also includes relocated functions that were previously in included in interfaces/images.py to keep things organized.
*Will require some brief unit tests.