-
Notifications
You must be signed in to change notification settings - Fork 24
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 emc-related helper functions - images #77
base: master
Are you sure you want to change the base?
[ENH] Add emc-related helper functions - images #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. |
…helper functions in a new module utils/images.py, and relocate dangling image helper functions that were previously in interfaces/images.py into this module
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.
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
Awesome, I think I have all the feedback I need now to finish polishing the docstring, and include some doctests. |
Co-Authored-By: Oscar Esteban <code@oscaresteban.es>
@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? |
Co-Authored-By: Ariel Rokem <arokem@gmail.com>
7d82850
to
a70374f
Compare
…of median_image and average_image using a callable argument
a70374f
to
7767498
Compare
…of median_image and average_image using a callable argument
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.