[pymvpa] Balancer: AttributeError _pattr

Yaroslav Halchenko debian at onerussian.com
Thu Apr 7 19:42:26 UTC 2011


Hi Brice,

thanks for the report... evil cut/paste and as always -- there could be
more unittesting ;)

I have fixed it, and will push shortly in GIT master.   next release
candidate is probably approaching so updated packages will come soon
into NeuroDebian.  Meanwhile, if you really want to try it -- just run
that script in '-O' mode, then all those debug printout calls will not
be ran... e.g.

python -O myscript.py

or

python -O /usr/bin/ipython

if you want such ipython session ;)

On Fri, 08 Apr 2011, brice rebsamen wrote:

>    Hi
>    After having learned 0.4 I am now re-writting my code using 0.6. I
>    notice that several things have changed, for instance splitters become
>    partitioners, and nperlabel has disappeared. I am now using a Balancer
>    in a ChainNode with a partitioner (following one of the examples):
>    cv = CrossValidation(SMLR(), \
>               ChainNode([NGroupPartitioner(5),
>    Balancer()],space='partitions'), \
>               enable_ca=['stats','training_stats'])
>    I get an AttributeError, complaining about _pattr missing, which
>    happens while converting to string the Balancer (see below)
>    ERROR: An unexpected error occurred while tokenizing input
>    The following traceback may be corrupted or invalid
-- 
=------------------------------------------------------------------=
Keep in touch                                     www.onerussian.com
Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic



More information about the Pkg-ExpPsy-PyMVPA mailing list