[SciPy-user] removal of stats.mean et al breaks untested code

Bruce Southey bsouthey@gmail....
Mon Apr 6 08:46:40 CDT 2009

josef.pktd@gmail.com wrote:
> I just found another victim of the removal of stats.mean and stats.var
> stats.gaussian_kde doesn't have any tests, and when I tried to rewrite
> the option to set the smoothing factor, I found that several methods
> are broken that use the removed stats.mean and stats.var.
> If the users of scipy have code similar to the one in scipy.stats,
> without sufficient test coverage, then fixing all the hidden
> (untested) usages of removed functions can be pretty painful and will
> take quite a bit of time.
> In case that the release cycle of scipy gets shorter, we might want to
> consider a longer depreciation period.
> Josef
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://mail.scipy.org/mailman/listinfo/scipy-user
The only other one that I could easily find by looking for the files 
that import stats:
stats/_support.py in the collapse function line 179:
    if cfcn is None:
        cfcn = stats.mean
    a = asarray(a)


More information about the SciPy-user mailing list