d86f40ba60146d226553227fa7dbeae65f4cbd14,nilearn/_utils/param_validation.py,,_get_mask_volume,#Any#,76

Before Change


    vol : float
        The computed volume.
    
    vox_dims = get_header(mask_img).get_zooms()[:3]
    return 1. * np.prod(vox_dims) * mask_img.get_data().astype(np.bool).sum()


def _adjust_screening_percentile(screening_percentile, mask_img,

After Change


    vol : float
        The computed volume.
    
    prod_vox_dims = 1. * np.abs(np.linalg.det(mask_img.affine[:3, :3]))
    return prod_vox_dims * mask_img.get_data().astype(np.bool).sum()


def _adjust_screening_percentile(screening_percentile, mask_img,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 14

Instances


Project Name: nilearn/nilearn
Commit Name: d86f40ba60146d226553227fa7dbeae65f4cbd14
Time: 2017-03-01
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume


Project Name: nilearn/nilearn
Commit Name: d86f40ba60146d226553227fa7dbeae65f4cbd14
Time: 2017-03-01
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume


Project Name: nilearn/nilearn
Commit Name: ba785c56689904ebee976d609e90939648169a3e
Time: 2017-03-01
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume


Project Name: nilearn/nilearn
Commit Name: 14151e7f6e352c3fb553104ba0c57489dcf96ae4
Time: 2017-02-27
Author: ahoyosidrobo@gmail.com
File Name: nilearn/_utils/param_validation.py
Class Name:
Method Name: _get_mask_volume