[pymvpa] minor bug ?

josef.pktd at gmail.com josef.pktd at gmail.com
Wed Apr 27 13:21:25 UTC 2011


On Wed, Apr 27, 2011 at 8:51 AM, Yaroslav Halchenko
<debian at onerussian.com> wrote:
> Hi Brice,
>
> it annoys me a  lot too!  I have no clue how scipy developers allowed
> all those blunt "print" statements to occur within the 0.9.0
> release code.  As such they are a bit difficult to suppress (at least I
> have failed in my attempts) and majority of them is already addressed
> upstream


You can just temporarily turn off the warnings in the test, if you add
test for corner cases.
That's how Ralf silenced the scipy test suite.

If there are print statements, then it would be a bug in scipy, but
these look like "Warnings" where you have control over what happens to
them.

Josef


>
> as for pymvpa -- temporary workaround is to add
>
> [externals]
> have good scipy.stats.rdist = yes
>
> into ~/.pymvpa.cfg
>
> and I guess we would also condition that check simply on scipy
> version known to have "good" rdist ;)
>
> On Wed, 27 Apr 2011, brice rebsamen wrote:
>
>> from the latest GIT code,
>> when importing mvpa.suite
>> I get the following warning messages:
>
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: divide by zero encountered in power
>> Warning: invalid value encountered in _cdf_single_call (vectorized)
>
>> I traced that it occurs in mvpa.support.stats.py when testing if
>> externals.exists('good scipy.stats.rdist')
>
>> Regards
>> Brice
>
>> _______________________________________________
>> Pkg-ExpPsy-PyMVPA mailing list
>> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
>
>
> --
> =------------------------------------------------------------------=
> Keep in touch                                     www.onerussian.com
> Yaroslav Halchenko                 www.ohloh.net/accounts/yarikoptic
>
> _______________________________________________
> Pkg-ExpPsy-PyMVPA mailing list
> Pkg-ExpPsy-PyMVPA at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-exppsy-pymvpa
>



More information about the Pkg-ExpPsy-PyMVPA mailing list