-
Notifications
You must be signed in to change notification settings - Fork 16
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: Base implementation of B-Spline transforms #138
Conversation
41a3505
to
3ad562e
Compare
3ad562e
to
bfee93d
Compare
Hello @oesteban! Thanks for updating this PR. There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-02-24 11:04:52 UTC |
b3b92e5
to
3d2d6c7
Compare
1abd11f
to
a467b65
Compare
I think this base chunk of code can be reviewed. Please note I'm aware of #154. |
3eaf462
to
52a68e5
Compare
Codecov Report
@@ Coverage Diff @@
## master #138 +/- ##
==========================================
+ Coverage 97.82% 97.88% +0.06%
==========================================
Files 12 13 +1
Lines 1104 1184 +80
Branches 171 183 +12
==========================================
+ Hits 1080 1159 +79
Misses 18 18
- Partials 6 7 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Note to self: pick back up at to_field()
.
field = _ensure_image(field) | ||
self._field = np.squeeze( | ||
np.asanyarray(field.dataobj) if hasattr(field, "dataobj") else field | ||
) |
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 change anything, but I think _ensure_image
doesn't quite capture the operation of something that will pass ndarrays through untouched.
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.
Is this a comment on the function's name, the function's behavior, or both?
Happy to move towards something more appropriate.
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.
Based on your comment, I didn't really try to understand _map_xyz
. The remaining parts seem sensible. Some final comments.
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
Co-authored-by: Chris Markiewicz <markiewicz@stanford.edu>
4cfc8f8
to
f232acf
Compare
Addressing #106.