[pymvpa] trouble using tutorials
Yaroslav Halchenko
debian at onerussian.com
Thu Apr 13 20:40:51 UTC 2017
On Wed, 12 Apr 2017, Adam Jones wrote:
> Thanks for the help, it's much appreciated.
> I already had -tutorialdata and -doc installed.
> But as you suggest, cfg.get('location', 'tutorial data') does work within
> ipython. I can't say I understand why this is, but either way I'm still
> not able to access cfg from outside of ipython.
> Is it necessary to setup the config file correctly for anything other than
> the tutorials? If so, any idea how I can set my config file to point to
> '/home/lab/pymvpa2_tutorial/data/' when accessed from just regular ol'
> python?
two ways
- env variable:
$> MVPA_LOCATION_TUTORIAL_DATA=/tmp/ python -c 'import mvpa2; print mvpa2.cfg.get("location", "tutorial data")'
/tmp/
(adjust accordingly)
- modify you ~/.pymvpa2.cfg to have
[location]
tutorial data = /home/lab/pymvpa2_tutorial/data/
--
Yaroslav O. Halchenko
Center for Open Neuroscience http://centerforopenneuroscience.org
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
More information about the Pkg-ExpPsy-PyMVPA
mailing list