|
37 | 37 | from numpy import array as narray, expand_dims, iinfo, finfo
|
38 | 38 | from numpy._core.numeric import normalize_axis_tuple
|
39 | 39 | from numpy._utils._inspect import getargspec, formatargspec
|
| 40 | +from numpy._utils import set_module |
40 | 41 |
|
41 | 42 |
|
42 | 43 | __all__ = [
|
@@ -2636,7 +2637,7 @@ class MaskedIterator:
|
2636 | 2637 | >>> x = np.ma.array(arange(6).reshape(2, 3))
|
2637 | 2638 | >>> fl = x.flat
|
2638 | 2639 | >>> type(fl)
|
2639 |
| - <class 'numpy.ma.core.MaskedIterator'> |
| 2640 | + <class 'numpy.ma.MaskedIterator'> |
2640 | 2641 | >>> for item in fl:
|
2641 | 2642 | ... print(item)
|
2642 | 2643 | ...
|
@@ -2717,6 +2718,7 @@ def __next__(self):
|
2717 | 2718 | return d
|
2718 | 2719 |
|
2719 | 2720 |
|
| 2721 | +@set_module("numpy.ma") |
2720 | 2722 | class MaskedArray(ndarray):
|
2721 | 2723 | """
|
2722 | 2724 | An array class with possibly masked values.
|
@@ -8378,7 +8380,7 @@ def asarray(a, dtype=None, order=None):
|
8378 | 8380 | mask=False,
|
8379 | 8381 | fill_value=1e+20)
|
8380 | 8382 | >>> type(np.ma.asarray(x))
|
8381 |
| - <class 'numpy.ma.core.MaskedArray'> |
| 8383 | + <class 'numpy.ma.MaskedArray'> |
8382 | 8384 |
|
8383 | 8385 | """
|
8384 | 8386 | order = order or 'C'
|
@@ -8425,7 +8427,7 @@ def asanyarray(a, dtype=None):
|
8425 | 8427 | mask=False,
|
8426 | 8428 | fill_value=1e+20)
|
8427 | 8429 | >>> type(np.ma.asanyarray(x))
|
8428 |
| - <class 'numpy.ma.core.MaskedArray'> |
| 8430 | + <class 'numpy.ma.MaskedArray'> |
8429 | 8431 |
|
8430 | 8432 | """
|
8431 | 8433 | # workaround for #8666, to preserve identity. Ideally the bottom line
|
|
0 commit comments