nipreps / mriqc

Automated Quality Control and visual reports for Quality Assessment of structural (T1w, T2w) and functional MRI of the brain
http://mriqc.readthedocs.io
Apache License 2.0
291 stars 129 forks source link

DWI pipeline -- ``RuntimeWarning`` #1333

Open oesteban opened 3 weeks ago

oesteban commented 3 weeks ago
/home/oesteban/.miniconda3/envs/fmriprep/lib/python3.11/site-packages/dipy/denoise/noise_estimate.py:252: RuntimeWarning: divide by zero encountered in divide
  s = sum_m2 / (2 * K * sigma**2)
/home/oesteban/.miniconda3/envs/fmriprep/lib/python3.11/site-packages/dipy/denoise/noise_estimate.py:252: RuntimeWarning: invalid value encountered in divide
  s = sum_m2 / (2 * K * sigma**2)
arokem commented 3 weeks ago

My guess is that is probably due to background voxels that get included in the mask.

oesteban commented 3 weeks ago

Yes, this is some sort of note to self to look into the calling function.