28441214cee82200146a19312c0cf78fb76a7121,nilearn/image/image.py,,_smooth_array,#Any#Any#Any#Any#Any#,161
Before Change
if isinstance(fwhm, str) and (fwhm == "fast"):
arr = _fast_smooth_array(arr)
elif fwhm is not None:
fwhm = np.asarray(fwhm)
fwhm = np.where(fwhm == None, 0.0, fwhm) // noqa: E711
affine = affine[:3, :3] // Keep only the scale part.
fwhm_over_sigma_ratio = np.sqrt(8 * np.log(2)) // FWHM to sigma.
vox_size = np.sqrt(np.sum(affine ** 2, axis=0))
After Change
if isinstance(fwhm, str) and (fwhm == "fast"):
arr = _fast_smooth_array(arr)
elif fwhm is not None:
fwhm = np.asarray([fwhm]).ravel()
fwhm = np.asarray([0. if elem is None else elem for elem in fwhm])
affine = affine[:3, :3] // Keep only the scale part.
fwhm_over_sigma_ratio = np.sqrt(8 * np.log(2)) // FWHM to sigma.
vox_size = np.sqrt(np.sum(affine ** 2, axis=0))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: nilearn/nilearn
Commit Name: 28441214cee82200146a19312c0cf78fb76a7121
Time: 2020-03-23
Author: kc.insight.pi@gmail.com
File Name: nilearn/image/image.py
Class Name:
Method Name: _smooth_array
Project Name: ilastik/ilastik
Commit Name: de807f39aed300bc07e1eb76d39a2c68838298ab
Time: 2016-02-08
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opFilterLabels.py
Class Name:
Method Name: remove_wrongly_sized_connected_components
Project Name: astroML/astroML
Commit Name: d07c452978b817952fde5b07966f030fff6a476b
Time: 2014-10-19
Author: jakevdp@gmail.com
File Name: astroML/datasets/generated.py
Class Name:
Method Name: generate_mu_z