-
Notifications
You must be signed in to change notification settings - Fork 27
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
FIX: Calculate bspline grids separately from colocation matrices #308
Conversation
Codecov ReportBase: 83.94% // Head: 90.70% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## master #308 +/- ##
==========================================
+ Coverage 83.94% 90.70% +6.76%
==========================================
Files 24 24
Lines 1999 1991 -8
Branches 232 305 +73
==========================================
+ Hits 1678 1806 +128
+ Misses 280 145 -135
+ Partials 41 40 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
@oesteban This should be a fairly quick review. This fix is necessary for a release, regardless of whether we get in other improvements. |
Replaces #300, correct? |
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.
Okay, I can see this is not replacing #300.
I believe readability is much improved :)
db9314f
to
7d5d007
Compare
7d5d007
to
6514401
Compare
The
_collocation_matrix
function introduced in #301 could produce slightly different knot spacings if the field of view changes sufficiently in resampling. The results of this function should be based entirely on the size of the input image, not a dynamic resampling.We therefore calculate the grid spacings before any resampling. This eliminates the need for a separate
_collocation_matrix
, which can be done with a single call toscipy.sparse.vstack()
over an iterable of sparse matrices.Closes #307.