[SciPy-user] removal of stats.mean et al breaks untested code
Mon Apr 6 08:46:40 CDT 2009
> 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.
> SciPy-user mailing list
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