Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/scipy/stats/morestats.py: 70%
10 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
« prev ^ index » next coverage.py v7.3.2, created at 2023-12-12 06:31 +0000
1# This file is not meant for public use and will be removed in SciPy v2.0.0.
2# Use the `scipy.stats` namespace for importing the functions
3# included below.
5import warnings
6from . import _morestats
9__all__ = [ # noqa: F822
10 'mvsdist',
11 'bayes_mvs', 'kstat', 'kstatvar', 'probplot', 'ppcc_max', 'ppcc_plot',
12 'boxcox_llf', 'boxcox', 'boxcox_normmax', 'boxcox_normplot',
13 'shapiro', 'anderson', 'ansari', 'bartlett', 'levene', 'binom_test',
14 'fligner', 'mood', 'wilcoxon', 'median_test',
15 'circmean', 'circvar', 'circstd', 'anderson_ksamp',
16 'yeojohnson_llf', 'yeojohnson', 'yeojohnson_normmax',
17 'yeojohnson_normplot', 'annotations', 'namedtuple', 'isscalar', 'log',
18 'around', 'unique', 'arange', 'sort', 'amin', 'amax', 'atleast_1d',
19 'array', 'compress', 'exp', 'ravel', 'count_nonzero', 'arctan2',
20 'hypot', 'optimize', 'find_repeats',
21 'chi2_contingency', 'distributions', 'rv_generic', 'Mean',
22 'Variance', 'Std_dev', 'ShapiroResult', 'AndersonResult',
23 'Anderson_ksampResult', 'AnsariResult', 'BartlettResult',
24 'LeveneResult', 'FlignerResult', 'WilcoxonResult'
25]
28def __dir__():
29 return __all__
32def __getattr__(name):
33 if name not in __all__:
34 raise AttributeError(
35 "scipy.stats.morestats is deprecated and has no attribute "
36 f"{name}. Try looking in scipy.stats instead.")
38 warnings.warn(f"Please use `{name}` from the `scipy.stats` namespace, "
39 "the `scipy.stats.morestats` namespace is deprecated.",
40 category=DeprecationWarning, stacklevel=2)
42 return getattr(_morestats, name)