You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should set a default threshold for "zerovariance". I think 1e-10 is more than small enough. In the example dataset I have, only one additional voxel is caught by this less stringent threshold, and would avoid the failure.
Will propose a fix soon, but wanted to give people a chance to comment.
The text was updated successfully, but these errors were encountered:
Summary
In
compute_dvars
we remove zero-variance voxels:nipype/nipype/algorithms/confounds.py
Lines 1045 to 1054 in 3e7e613
However, if
func_sd
is small but nonzero, this will propagate todiff_sdhat
:nipype/nipype/algorithms/confounds.py
Lines 1061 to 1063 in 3e7e613
Which then can explode the values in
nipype/nipype/algorithms/confounds.py
Lines 1078 to 1080 in 3e7e613
If sufficiently small, we will overflow
float32
.Proposal
We should set a default threshold for "zerovariance". I think 1e-10 is more than small enough. In the example dataset I have, only one additional voxel is caught by this less stringent threshold, and would avoid the failure.
Will propose a fix soon, but wanted to give people a chance to comment.
The text was updated successfully, but these errors were encountered: