scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
62 stars 60 forks source link

Division by 0 #1054

Open EmmaRenauld opened 2 weeks ago

EmmaRenauld commented 2 weeks ago

See warning when runing pytest scripts/tests/test_bundle_fixel_analysis.py:

scilpy/scilpy/tractanalysis/fixel_density.py:150: RuntimeWarning: invalid value encountered in divide
    maps[..., i] /= fixel_sum
EmmaRenauld commented 1 week ago

See #884 for annother one in dti_metrics.

See also a third different division by 0 here:

image

EmmaRenauld commented 1 week ago

Similarly, see:

image

EmmaRenauld commented 1 week ago

Again 3 more cases:

image