[pymvpa] 3D images with NiftiDataset?

Yaroslav Halchenko debian at onerussian.com
Thu Sep 18 14:23:18 UTC 2008


> I've been mucking about trying to get NiftiDataset to grab my images (3d 
> maps of beta weights from a GLM) and mask but keep running into this error:

> ValueError: The mask dataspace shape [(54, 65, 53)] is not compatible 
> with the shape of the provided data samples [(65, 53)].
Could you try adding another leading dimension in the data samples? like
data[N.newaxis, :]


-- 
Yaroslav Halchenko
Research Assistant, Psychology Department, Rutgers-Newark
Student  Ph.D. @ CS Dept. NJIT
Office: (973) 353-5440x263 | FWD: 82823 | Fax: (973) 353-1171
        101 Warren Str, Smith Hall, Rm 4-105, Newark NJ 07102
WWW:     http://www.linkedin.com/in/yarik        



More information about the Pkg-ExpPsy-PyMVPA mailing list