Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | BUG: Allow subclasses of MaskedConstant to behave as unique singletons | Eric Wieser | 2017-10-04 | 2 | -3/+18 | |
| | | | | | | | | Fixes astropy/astropy#6645 | |||||
* | | BUG: fix stray comma in _array2string | Stefan Winkler | 2017-10-03 | 1 | -2/+2 | |
|/ | | | | | | _array2string unconditionally added a comma after the '...' that are inserted for arrays exceeding the size threshold. Instead, add the separator character in _formatArray. Fixes #9777. | |||||
* | Merge pull request #9645 from xoviat/appveyor | Charles Harris | 2017-09-30 | 1 | -0/+4 | |
|\ | | | | | ENH: enable OpenBLAS on windows. | |||||
| * | tests: core: update failure message | xoviat | 2017-09-09 | 1 | -1/+1 | |
| | | ||||||
| * | TST: fix failures: | xoviat | 2017-09-04 | 1 | -0/+4 | |
| | | | | | | | | | | | | 1. fail tests related to DLL load failure as they were previously untested. 2. fix have_compiler to return false on old compilers 3. xfail some tests that were not working on old Python versions. | |||||
* | | BUG: Don't ignore mismatching shapes just because the mask is all zeros | Eric Wieser | 2017-09-28 | 2 | -2/+8 | |
| | | | | | | | | Fixes #4520 | |||||
* | | BUG: Shrinking the mask on a structured type errors | Eric Wieser | 2017-09-28 | 2 | -13/+24 | |
| | | | | | | | | Now it is a no-op, as elsewhere in the file. Extract the mask-shrinking into a function. | |||||
* | | BUG: np.ma.trace gives the wrong result on ND arrays | Eric Wieser | 2017-09-27 | 2 | -1/+6 | |
| | | | | | | | | Fixes #5560 | |||||
* | | MAINT: Remove special casing of structured dtypes in MaskedArray.__str__ | Eric Wieser | 2017-09-25 | 1 | -24/+22 | |
| | | | | | | | | This means that large void arrays are now truncated as they are for other types, for speed. | |||||
* | | MAINT: Remove special casing of 0d in MaskedArray.__str__ | Eric Wieser | 2017-09-25 | 1 | -22/+5 | |
| | | ||||||
* | | MAINT: Remove hack from gh-7659 for gh-7493 | Eric Wieser | 2017-09-25 | 1 | -14/+8 | |
| | | | | | | | | Working with 0d arrays is enough here | |||||
* | | BUG: Errors thrown by 0d arrays in setitem are silenced and replaced | Eric Wieser | 2017-09-23 | 1 | -1/+24 | |
| | | | | | | | | Fixes gh-8461 | |||||
* | | Merge pull request #9336 from eric-wieser/masked-constant | Charles Harris | 2017-09-21 | 2 | -12/+92 | |
|\ \ | | | | | | | BUG: Fix various problems with the np.ma.masked constant | |||||
| * | | TST: Add test for direct writing of `masked` | Eric Wieser | 2017-07-18 | 1 | -2/+4 | |
| | | | ||||||
| * | | BUG: change fix for gh-9328 to make masked.copy() a noop | Eric Wieser | 2017-07-18 | 2 | -24/+15 | |
| | | | ||||||
| * | | MAINT: Improve comments and tests, in response to review | Eric Wieser | 2017-07-16 | 2 | -13/+29 | |
| | | | ||||||
| * | | BUG: np.ma.masked is mutable | Eric Wieser | 2017-06-30 | 2 | -1/+27 | |
| | | | ||||||
| * | | BUG: Prevent copies of np.ma.MaskedConstant from being created by .view. | Eric Wieser | 2017-06-30 | 2 | -15/+36 | |
| | | | | | | | | | | | | | | | | | | This seems to solve the problem everywhere. It's not clear if this works on PyPy. Fixes gh-9328 | |||||
| * | | BUG: np.ma.masked does not preserve identity through pickle | Eric Wieser | 2017-06-30 | 2 | -1/+15 | |
| | | | | | | | | | | | | It's still possible to create duplicate MaskedConstants through `.copy()` | |||||
| * | | ENH: Make duplicated masked constants obvious | Eric Wieser | 2017-06-30 | 2 | -1/+11 | |
| | | | ||||||
* | | | Merge pull request #9433 from eric-wieser/transpose-full-view | Allan Haldane | 2017-09-18 | 2 | -4/+24 | |
|\ \ \ | | | | | | | | | BUG: make np.transpose return a view of the mask | |||||
| * | | | BUG: Make transpose and diagonal masks be views | Eric Wieser | 2017-09-05 | 2 | -4/+24 | |
| | | | | | | | | | | | | | | | | Fixes gh-8506 and fixes gh-7483 | |||||
* | | | | TST: Add new unit tests for structure assignment | Allan Haldane | 2017-09-07 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | TST: Fix/Remove old unit tests for structure assignment | Allan Haldane | 2017-09-07 | 1 | -10/+6 | |
| | | | | ||||||
* | | | | MAINT: improve struct assignment, allow multi fields views | Allan Haldane | 2017-09-07 | 1 | -0/+5 | |
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit attempts to make structure assignment more consistent, and then changes multi-field indices to return a view instead of a copy. Assignment between structures now works "by field position" rather than "by field name". Fixes #2353, fixes #6085, fixes #3351, fixes #6085, fixes #6314, fixes #2346, fixes #7058, fixes #3641, fixes #5994, fixes #7262, fixes #7493 | |||||
* | | | Merge pull request #9432 from eric-wieser/masked-0d-methods | Charles Harris | 2017-08-27 | 2 | -19/+39 | |
|\ \ \ | |/ / | | | | BUG: Fix loss of masks in masked 0d methods | |||||
| * | | BUG: Keep mask when calling methods on 0d arrays. | Eric Wieser | 2017-08-13 | 2 | -10/+33 | |
| | | | | | | | | | | | | | | | | | | This also prevents `.squeeze()` from ever returning `masked`, which was incorrect Fixes gh-9430. | |||||
| * | | MAINT: Collect together _arraymethods, and remove duplicate 'copy' | Eric Wieser | 2017-08-12 | 1 | -9/+6 | |
| | | | ||||||
* | | | BUG: MaskedArray._optinfo is discarded by__eq__/__ne__ (#9540) | David Schaefer | 2017-08-13 | 2 | -0/+20 | |
|/ / | ||||||
* | | TST, MAINT: Add `__init__.py` files to tests directories. | Charles Harris | 2017-08-06 | 1 | -0/+0 | |
| | | | | | | | | | | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available. | |||||
* | | MAINT: Remove `level=` keyword from test arguments. | Charles Harris | 2017-08-05 | 1 | -7/+5 | |
| | | | | | | | | | | | | I don't know what that argument was used for, but it showis up in old tests and is not explicitly used within the tests. I assume it was part of an old testing framework and is now longer needed. | |||||
* | | MAINT/DOC: Use builtin when np.{x} is builtins.{x}. | Eric Wieser | 2017-08-05 | 6 | -48/+48 | |
| | | | | | | | | | | | | | | This is the case for x in {int, bool, str, float, complex, object}. Using the np.{x} version is deceptive as it suggests that there is a difference. This change doesn't affect any external behaviour. The `long` type is missing in python 3, so np.long is still useful | |||||
* | | MAINT: Add a common subclass to all the masked ufunc wrappers | Eric Wieser | 2017-07-24 | 1 | -27/+21 | |
| | | ||||||
* | | Merge pull request #9452 from eric-wieser/new-style-classes | Charles Harris | 2017-07-24 | 2 | -12/+12 | |
|\ \ | | | | | | | MAINT: Use new-style classes on 2.7 | |||||
| * | | MAINT: Use new-style classes on 2.7 | Eric Wieser | 2017-07-24 | 2 | -12/+12 | |
| | | | | | | | | | | | | Deliberately avoids tests, to prevent introducing a failure on old-style classes later. | |||||
* | | | TST: Remove unittest dependencies in numpy/ma/tests. | Charles Harris | 2017-07-24 | 7 | -594/+583 | |
|/ / | ||||||
* | | Merge pull request #9362 from charris/rearrange-testing-module | Charles Harris | 2017-07-06 | 4 | -11/+12 | |
|\ \ | | | | | | | ENH: Rearrange testing module to isolate nose dependency. | |||||
| * | | MAINT: Rearrange files in numpy/testing module. | Charles Harris | 2017-07-04 | 4 | -11/+12 | |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that. | |||||
* | | BUG: void masked fillvalue cannot be cast to void in python 3 | Eric Wieser | 2017-07-01 | 2 | -1/+6 | |
|/ | ||||||
* | Merge pull request #9322 from eric-wieser/ma-astype | ahaldane | 2017-06-27 | 2 | -7/+12 | |
|\ | | | | | BUG: np.ma.astype fails on structured types | |||||
| * | BUG: MaskedArray.astype fails for non-trivial structured types | Eric Wieser | 2017-06-27 | 2 | -7/+12 | |
| | | ||||||
* | | BUG: Overhaul *_fill_value functions | Eric Wieser | 2017-06-27 | 2 | -82/+75 | |
| | | | | | | | | | | | | | | | | | | | | These now: * Return void scalars instead of tuples for structured dtypes * Actually accept non-trivial dtype arguments * Work for nested structured and subarray dtypes * Uniformly convert scalar types into dtypes Also fixes #9315 | |||||
* | | MAINT: Remove cycle between _check_fill_value and default_fill_value | Eric Wieser | 2017-06-27 | 1 | -21/+17 | |
| | | ||||||
* | | TST: Verify that sorting subarrays is fixed | Eric Wieser | 2017-06-27 | 1 | -0/+14 | |
| | | | | | | | | Tests for gh-8069 | |||||
* | | MAINT: Better names in ma.sort test | Eric Wieser | 2017-06-27 | 1 | -12/+12 | |
| | | ||||||
* | | BUG: Fix gh-8069 | Eric Wieser | 2017-06-27 | 2 | -1/+15 | |
| | | | | | | | | Fill values were not correctly calculated for subdtypes, instead returning `None` | |||||
* | | MAINT: De-duplicate ma.m(ax|in)imum_fill_value | Eric Wieser | 2017-06-27 | 1 | -26/+18 | |
|/ | ||||||
* | Merge pull request #5580 from jakirkham/fix_masked_array_views | Charles Harris | 2017-06-09 | 3 | -93/+105 | |
|\ | | | | | BUG, DEP: Fix masked arrays to properly edit views. ( #5558 ) | |||||
| * | TST: Update and add tests masked array views. | John Kirkham | 2017-01-17 | 2 | -69/+104 | |
| | | ||||||
| * | BUG: Share masked array views for writing. | John Kirkham | 2017-01-17 | 1 | -24/+1 | |
| | |