Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | convert shebang from python to python3 (#15687) | Changqing Li | 2020-03-04 | 2 | -2/+2 |
| | | | | Signed-off-by: Changqing Li <changqing.li@windriver.com> | ||||
* | MAINT: cleanup unused imports; avoid redefinition of imports | Mike Taves | 2020-02-06 | 1 | -1/+0 |
| | | | | | | | * Cleanup unused imports (F401) of mostly standard Python modules, or some internal but unlikely referenced modules * Where internal imports are potentially used, mark with noqa * Avoid redefinition of imports (F811) | ||||
* | MAINT: Remove sys.version checks (gh-#15373) | Seth Troisi | 2020-01-28 | 1 | -5/+0 |
| | | | More sys.version cleanup. | ||||
* | STY: use 'yield from <expr>' for simple cases (#15444) | Mike Taves | 2020-01-27 | 1 | -6/+3 |
| | | | | | | | | | This PR uses simple cases of PEP 380 to rewrite: for v in g: yield v into: yield from <expr> | ||||
* | Update core.py with f-strings (issue #15420) | Anthony | 2020-01-26 | 1 | -2/+5 |
| | | | Corrected past shortcomings | ||||
* | Update core.py | Anthony | 2020-01-26 | 1 | -27/+16 |
| | | | Replace old strings format to fstrings | ||||
* | MAINT: Remove Python2 workarounds | Seth Troisi | 2020-01-23 | 1 | -4/+20 |
| | |||||
* | MAINT: Replace basestring with str. | Charles Harris | 2020-01-23 | 2 | -8/+7 |
| | | | | | | | This replaces basestring with str except in - tools/npy_tempita/ - numpy/compat/py3k.py | ||||
* | MAINT: Python2 Cleanups | Seth Troisi | 2020-01-21 | 1 | -1/+1 |
| | |||||
* | NEP: issue deprecation warning when creating ragged array (NEP 34) | Matti Picus | 2020-01-21 | 2 | -3/+3 |
| | | | | This implements NEP 34. | ||||
* | [MAINT] Cleanup python2 sys.version checks | Seth Troisi | 2020-01-20 | 1 | -9/+1 |
| | |||||
* | MAINT: Remove sys.version checks in tests | Seth Troisi | 2020-01-15 | 1 | -5/+0 |
| | |||||
* | DOC: fix typos | Brian Wignall | 2020-01-14 | 1 | -1/+1 |
| | |||||
* | Changed file extension of ma README. | Ross Barnowski | 2020-01-10 | 1 | -0/+0 |
| | | | | Get github to render the rST correctly. | ||||
* | MAINT: Remove implicit inheritance from object class (#15236) | Jon Dufresne | 2020-01-05 | 11 | -56/+56 |
| | | | | | | | Inheriting from object was necessary for Python 2 compatibility to use new-style classes. In Python 3, this is unnecessary as there are no old-style classes. Dropping the object is more idiomatic Python. | ||||
* | MAINT: Remove unnecessary 'from __future__ import ...' statements | Jon Dufresne | 2020-01-03 | 15 | -30/+0 |
| | | | | | As numpy is Python 3 only, these import statements are now unnecessary and don't alter runtime behavior. | ||||
* | Revert "DEP: issue deprecation warning when creating ragged array (NEP 34)"revert-14794-nep-0034-impl | Ralf Gommers | 2019-12-06 | 2 | -3/+3 |
| | |||||
* | Merge pull request #15039 from eric-wieser/fix-weird-reraise | Sebastian Berg | 2019-12-03 | 1 | -2/+1 |
|\ | | | | | BUG: Exceptions tracebacks are dropped | ||||
| * | BUG: Exceptions tracebacks are dropped | Eric Wieser | 2019-12-03 | 1 | -2/+1 |
| | | | | | | | | For some reason this code reconstructed brand new exception objects with no traceback, rather than just re-raising | ||||
* | | Merge pull request #14794 from mattip/nep-0034-impl | Ralf Gommers | 2019-12-02 | 2 | -3/+3 |
|\ \ | | | | | | | DEP: issue deprecation warning when creating ragged array (NEP 34) | ||||
| * | | DEP: issue deprecation warning when creating ragged array (NEP 34) | mattip | 2019-10-31 | 2 | -3/+3 |
| | | | |||||
* | | | Merge pull request #14996 from eric-wieser/masked_rows-bad-argument | Sebastian Berg | 2019-12-02 | 2 | -2/+27 |
|\ \ \ | |_|/ |/| | | DEP: Deprecate the axis argument to masked_rows and masked_cols | ||||
| * | | DEP: Deprecate the axis argument to masked_rows and masked_cols | Eric Wieser | 2019-12-02 | 2 | -2/+27 |
| | | | | | | | | | | | | | | | This argument isn't used, and is confusing. (Small test added by seberg) | ||||
* | | | DOC: Document ma.filled behavior with non-scalar fill_value (#13698) | Kriti Singh | 2019-11-23 | 1 | -8/+33 |
|/ / | | | | | * DOC: Document and deprecate ma.filled behavior with non-scalar fill_value | ||||
* | | MAINT: revert gh-14800, which gave precedence to OO->O over OO->? | mattip | 2019-11-06 | 1 | -6/+1 |
| | | |||||
* | | ENH: add OO->? loops, use np.compare(a, b, dtype=bool), add comments | mattip | 2019-10-30 | 1 | -0/+1 |
| | | |||||
* | | WIP, DEP, ENH: finish richcompare changes from 1.10 | mattip | 2019-10-29 | 1 | -1/+5 |
|/ | |||||
* | DOC: convert `None` to bare None or ``None`` | mattip | 2019-10-15 | 2 | -2/+2 |
| | |||||
* | DOC: add numpy prefix | mattip | 2019-10-15 | 1 | -14/+14 |
| | |||||
* | TST: add test to check that (semi-)public API modules can be imported | Ralf Gommers | 2019-09-19 | 1 | -14/+0 |
| | | | | | Also remove `numpy.ma.version.py`, it was not importable and served no purpose. | ||||
* | DOC: lib: Add more explanation of the weighted average calculation. | Warren Weckesser | 2019-08-26 | 1 | -2/+5 |
| | | | | | Also removed the incorrect comment from the docstring of `numpy.ma.average` about the imaginary part of `weights` being ignored. | ||||
* | Merge pull request #14290 from eric-wieser/fix-if-fields | Charles Harris | 2019-08-22 | 1 | -1/+1 |
|\ | | | | | BUG: Fix misuse of .names and .fields in various places | ||||
| * | Merge remote-tracking branch 'upstream/master' into fix-if-fields | Eric Wieser | 2019-08-19 | 10 | -870/+930 |
| |\ | |||||
| * | | BUG: Fix detection of structured arrays in mrecords | Eric Wieser | 2019-08-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | This check would fail on the structured type `np.dtype([])`. No test, since I don't really understand mrecords | ||||
* | | | DEP: Deprecate load/dump functions in favour of pickle methods | kritisingh1 | 2019-08-19 | 1 | -89/+2 |
| |/ |/| | |||||
* | | Merge pull request #14039 from sameshl/remove_depr_rank_func | Sebastian Berg | 2019-07-31 | 1 | -18/+1 |
|\ \ | | | | | | | DEP: Remove np.rank which has been deprecated for more than 5 years | ||||
| * | | DEP: Remove np.rank which has been deprecated for more than 5 years | Samesh | 2019-07-31 | 1 | -18/+1 |
| | | | | | | | | | | | | references #7059 | ||||
* | | | Merge pull request #14145 from eric-wieser/fix-14140 | Sebastian Berg | 2019-07-30 | 2 | -1/+7 |
|\ \ \ | | | | | | | | | BUG: Remove the broken clip wrapper | ||||
| * | | | BUG: Remove the broken clip wrapper | Eric Wieser | 2019-07-28 | 2 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | ndarray.clip is already just a wrapper for the ufunc, so there is no need to do type-specific wrapping here any more Fixes gh-14140 | ||||
* | | | | MAINT: Use equality instead of identity check with literal | Harmon | 2019-07-25 | 1 | -1/+1 |
| |/ / |/| | | | | | Resolves #14123 | ||||
* | | | Merge pull request #13928 from ↵ | Matti Picus | 2019-07-11 | 1 | -2/+9 |
|\ \ \ | | | | | | | | | | | | | | | | | MSeifert04/ma-view-not-override-doc-with-ndarray-view DOC: Don't override MaskedArray.view documentation with the one from ndarray.view | ||||
| * | | | DOC: Don't override MaskedArray.view documentation with the one from ↵ | MSeifert04 | 2019-07-08 | 1 | -2/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ndarray.view To document the fill_value parameter it's needed to display the correct docstring of the function instead of overwriting it with the docstring of ndarray.view | ||||
* | | | | DOC: Remove explicit .next method calls with built-in next | MSeifert04 | 2019-07-07 | 1 | -6/+4 |
|/ / / | | | | | | | | | | | | | | | | | | | | | | In some cases the documentation examples failed with an AttributeError because the next method was not there. In a few other cases it still worked but may be more future-proof and ideomatic if they used the next function instead of the next method. | ||||
* | | | MAINT: Remove unnecessary parenthesis in numpy.ma.core | MSeifert04 | 2019-07-06 | 1 | -13/+13 |
| | | | |||||
* | | | DOC: Fix typo in "make_mask" documentation | MSeifert04 | 2019-07-02 | 1 | -1/+1 |
| | | | |||||
* | | | Merge pull request #13883 from MSeifert04/replace-integers-with-booleans | Charles Harris | 2019-07-02 | 4 | -17/+17 |
|\ \ \ | | | | | | | | | MAINT: Replace integers in places where booleans are expected | ||||
| * | | | MAINT: Replace integers in places where booleans are expected | MSeifert04 | 2019-07-01 | 4 | -17/+17 |
| | | | | |||||
* | | | | DOC: Add missing parameter description for keepdims in MaskedArray | MSeifert04 | 2019-07-01 | 1 | -0/+12 |
|/ / / | | | | | | | | | | | | | The methods max, min, ptp were missing the parameter in the documentation. | ||||
* | | | Deprecate collapsing shape-1 dtype fields to scalars. | Antony Lee | 2019-05-24 | 1 | -1/+2 |
|/ / | | | | | | | | | | | | | | | | | Currently, a field specified as `[(name, dtype, 1)]` is interpreted as a scalar field (i.e., the same as `[(name, dtype)]` or `[(name, dtype, ()]`). This now raises a FutureWarning; in a future version, it will be interpreted as a shape-(1,) field, i.e. the same as `[(name, dtype, (1,))]` (consistently with `[(name, dtype, n)]` with `n>1`, which is already equivalent to `[(name, dtype, (n,)]`). | ||||
* | | Merge pull request #10308 from eric-wieser/mask-attr-is-view | Matti Picus | 2019-05-12 | 3 | -10/+19 |
|\ \ | | | | | | | API: Make MaskedArray.mask return a view, rather than the underlying mask |