[pymvpa] trouble using tutorials

Adam Jones ajones173 at gmail.com
Fri Apr 14 15:48:14 UTC 2017


Got it. I'm all set now. Thanks much! Next beer is on me.

Just as a heads up- the 'ConfigParser' link in pymvpa.org/misc.html is
broken. I think having a way to read up on ConfigParser could be really
helpful in this situation for future newbs, like myself. Just a thought...

On Thu, Apr 13, 2017 at 3:40 PM, Yaroslav Halchenko <debian at onerussian.com>
wrote:

>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-exppsy-pymvpa/attachments/20170414/1e123865/attachment.html>


More information about the Pkg-ExpPsy-PyMVPA mailing list