Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/p/y/pypreprocess-HEAD/pypreprocess/reporting/check_preprocessing.py   pypreprocess(Download)
import nibabel
from ..external.nipy_labs import viz
from ..external.nipy_labs import compute_mask_files
from ..external import joblib
from ..io_utils import (compute_mean_3D_image,
 
    """
    mask_array = compute_mask_files(epi_data[0])
    affine = nibabel.load(epi_data[0]).get_affine()
    vol = np.abs(np.linalg.det(affine)) * mask_array.sum() / 1000
    elif mask == True:
        try:
            mask_array = compute_mask_files(epi_data[0])
        except AttributeError:  # nipy BUG / limitation
            _img = epi_data[0] if is_niimg(epi_data[0]
            nibabel.save(_img, _tmp)
 
            mask_array = compute_mask_files(_tmp)
    else:
        mask_array = None