-
Notifications
You must be signed in to change notification settings - Fork 54
FIX: Update all SpatialImage.get_data -> get_fdata #426
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
Conversation
Best reviewed: commit by commit
Optimal code review plan (1 warning)
|
a8e3ce6
to
7cb8323
Compare
Codecov Report
@@ Coverage Diff @@
## master #426 +/- ##
==========================================
- Coverage 59.09% 54.44% -4.65%
==========================================
Files 56 42 -14
Lines 5366 4746 -620
Branches 630 630
==========================================
- Hits 3171 2584 -587
+ Misses 2151 2046 -105
- Partials 44 116 +72
Continue to review full report at Codecov.
|
Please merge master. |
Hello @oesteban, Thank you for updating! Cheers! There are no style issues detected in this Pull Request. 🍻 To test for issues locally, Comment last updated at 2019-11-25 18:03:59 UTC |
435b4e7
to
c135539
Compare
For compatibility with nibabel: ``` find ./niworkflows -name "*.py" -exec sed -i 's+\.get_data(+.get_fdata(+g' {} \; ```
Co-Authored-By: Chris Markiewicz <[email protected]>
c135539
to
b757e35
Compare
Thanks very much @effigies, I badly needed this update about how to access image's data and handle dtypes. 👍 |
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.
No need to create a new image again. Just save the squeezed image.
Co-Authored-By: Chris Markiewicz <[email protected]>
For compatibility with nibabel: