Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FIX: Add tolerance parameter to ComputeDVARS #3489

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

Merged
effigies merged 4 commits into nipy:master from effigies:fix/dvars_tolerance
Jul 12, 2022

Conversation

@effigies
Copy link
Member

@effigies effigies commented Jul 12, 2022

Closes #3487.

Also made some changes to avoid numpy deprecation warnings, and used nibabel 3+ idioms for coercing data types.

effigies added 2 commits July 11, 2022 20:27
Directly coerce image dataobj attributes, and mask idiomatically
Replace interpolation with method in np.percentile (interpolation
deprecated)
Call AR_est_YW indirectly to avoid coercion of tuple(array, float)
Copy link

codecov bot commented Jul 12, 2022
edited
Loading

Codecov Report

Merging #3489 (693bff7) into master (c388fae) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@ Coverage Diff @@
## master #3489 +/- ##
=======================================
 Coverage 65.25% 65.25% 
=======================================
 Files 309 309 
 Lines 40846 40849 +3 
 Branches 5378 5378 
=======================================
+ Hits 26655 26658 +3 
 Misses 13117 13117 
 Partials 1074 1074 
Flag Coverage Δ
unittests 65.03% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
nipype/algorithms/confounds.py 67.35% <100.00%> (+0.16%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c388fae...693bff7. Read the comment docs.

in_file,
in_mask,
remove_zerovariance=False,
variance_tol=0.0,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the chance someone is relying on this function, I'd recommend adding this new parameter at the end, or shifting all defaults to be keyword-only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@mgxd mgxd mgxd approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Voxelwise dvars explodes with voxels with variance ~1e-19

2 participants

AltStyle によって変換されたページ (->オリジナル) /