[SciPy-dev] are masked array statistical function hidden intentionally?

josef.pktd at gmail.com josef.pktd at gmail.com
Tue Nov 18 19:04:01 EST 2008


On Tue, Nov 18, 2008 at 4:52 PM, Pierre GM <pgmdevlist at gmail.com> wrote:
>
> On Nov 18, 2008, at 4:35 PM, josef.pktd at gmail.com wrote:
>
>> scipy\stats\mstats.py and scipy\stats\mmorestats.py are masked array
>> version of many of the statistical function.
>>
>> They are not imported in any __init__.py and I did not find them in
>> the new documentation for scipy at
>> http://docs.scipy.org/doc/scipy/reference/stats.html.
>>
>> Is this on purpose or not?
>
>
> I'd say yes. I tried to keep the names of these functions as close to
> their non-masked equivalent as possible. Import ting them in __init__
> would likely erase the non-masked ones (or vice-versa depending the
> import order). It's not that difficult to access them through:
> from scipy.stats.mstats import thefunctionyouwant
> or
> import scipy.stats.mstats as mstats
>
> About the documentation: well, I guess I should take the blame for not
> having written more thorough docstrings.  However, I'm not in charge
> of building the whole doc.
>
> Now, I wonder whether it wouldn't be worth to consolidate things a
> bit, by making sure a function returns a masked array if its input is
> a masked array, a ndarray otherwise...
>
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-dev
>

I thought it more as an "advertising" question, since the docs seem to
pick up only functions that are exposed in __all__,
also np.lookfor does not seem to pick up any of the functions.

Josef



More information about the SciPy-Dev mailing list