[pymvpa] Difficulty importing PyMVPA tutorial datasets
Lyam Bailey
Lyam.Bailey at Dal.Ca
Mon Dec 17 20:10:21 GMT 2018
Dear users,
I'm trying to run some of the tutorials provided at http://www.pymvpa.org/tutorial.html, however I'm having trouble importing/accessing the tutorial data. For example, when using:
from mvpa2.datasets.sources.native import load_tutorial_data
ds = load_tutorial_data(roi=(15, 16, 23, 24, 36, 38, 39, 40, 48))
I get the following error:
FileNotFoundError Traceback (most recent call last)
<ipython-input-5-aa73ed9c4756> in <module>()
2 from mvpa2.datasets.sources.native import load_tutorial_data
3 datapath = pjoin(cfg.get('location', 'tutorial data', 'haxby2001'))
----> 4 ds = load_tutorial_data(roi=(15, 16, 23, 24, 36, 38, 39, 40, 48))
/home/lyam/anaconda2/lib/python2.7/site-packages/mvpa2/datasets/sources/native.pyc in load_tutorial_data(path, roi, add_fa, flavor)
113 mask = nb.Nifti1Image(tmpmask.astype(int), nimg.affine, nimg.header)
114 elif isinstance(roi, (tuple, list)):
--> 115 nimg = nb.load(pathjoin(maskpath, 'hoc.nii.gz'))
116 tmpmask = np.zeros(nimg.shape, dtype='bool')
117 for r in roi:
/home/lyam/anaconda2/lib/python2.7/site-packages/nibabel/loadsave.pyc in load(filename, **kwargs)
40 stat_result = os.stat(filename)
41 except OSError:
---> 42 raise FileNotFoundError("No such file or no access: '%s'" % filename)
43 if stat_result.st_size <= 0:
44 raise ImageFileError("Empty file: '%s'" % filename)
FileNotFoundError: No such file or no access: './haxby2001/sub001/masks/orig/hoc.nii.gz'
Clearly I can't access the data, but beyond that I'm not sure what's going on. Does anybody know what's going wrong here, and/or how to fix the problem?
Regards
Lyam
---------------------------------------------------------
Lyam Bailey, B.Sc., M.Sc.
Doctoral Student
Department of Psychology & Neuroscience
Dalhousie University
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-exppsy-pymvpa/attachments/20181217/d13bd188/attachment-0001.html>
More information about the Pkg-ExpPsy-PyMVPA
mailing list