I’m seeking some help in figuring out why, when I compute contrasts through nilearn, I often get a “RuntimeWarning: divide by zero encountered in true_divide” arising from the function “positive_reciprocal(X)” in _utils.py.
I have attempted to debug. Digging around it seems to stem from the function compute T contrast of the RegressionResults object, but after that I couldn’t track what is happening under the hood… is there somewhere where I can actually see the problematic values?
For context, I run a first-level LSA GLM estimated with motion confounds and the contrasts are between single trials (1) of the various conditions (bunch of 0s for the rest) against baseline (-1), to be used later in MVPA classification.
I’d appreciate any contribution that may improve my insight on the whole process!