-
Notifications
You must be signed in to change notification settings - Fork 532
RF: Separate mcparam -> affine translation from norm calculation in ArtifactDetect #2198
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
LGTM. is numpy 1.9 now our minimum? |
Since #2182. |
Codecov Report
@@ Coverage Diff @@
## master #2198 +/- ##
==========================================
+ Coverage 72.27% 72.27% +<.01%
==========================================
Files 1174 1174
Lines 58738 58736 -2
Branches 8454 8454
==========================================
- Hits 42453 42452 -1
+ Misses 14924 14923 -1
Partials 1361 1361
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #2198 +/- ##
==========================================
+ Coverage 72.27% 72.27% +<.01%
==========================================
Files 1174 1174
Lines 58738 58736 -2
Branches 8454 8454
==========================================
- Hits 42453 42452 -1
+ Misses 14924 14923 -1
Partials 1361 1361
Continue to review full report at Codecov.
|
algorithms.rapidart._calc_norm
uses an affine-based algorithm to calculate norms and displacements, translating from a list of motion parameters at each time point. This PR separates the two processes, creating a_calc_norm_affine
function that performs the core functionality, which_calc_norm
passes a list of affine matrices translated from the motion parameters.Changes proposed in this pull request
_calc_norm_affine
_calc_norm
translates motion parameters, calls_calc_norm_affine
_nanmean
, since the minimum numpy (1.9) includesnp.nanmean