| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
Fixes #10059
|
|
|
|
|
|
|
| |
* Commas are now used within data and mask
* dtypes are shown for float32, int8 etc, where they previously weren't
* Wrapped fields are now correctly indented
* Spaces removed around = to match PEP8
|
| |
|
|
|
|
|
|
|
|
| |
np.set_string_function
It's more important that scalars and 0d arrays are consistent here.
Previously, unicode(arr0d) would crash on 2.7
|
|\
| |
| | |
BUG: Added exception for casting numpy.ma.masked to long
|
| |
| |
| |
| | |
TST: Added test_coercion_long and removed knownfailure from test_coercion_int
|
|\ \
| |/
|/| |
BUG: Allow subclasses of MaskedConstant to behave as unique singletons
|
| |
| |
| |
| | |
Fixes astropy/astropy#6645
|
|/
|
|
|
|
| |
_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.
|
|\
| |
| | |
ENH: enable OpenBLAS on windows.
|
| | |
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| | |
Fixes #4520
|
| |
| |
| |
| | |
Now it is a no-op, as elsewhere in the file. Extract the mask-shrinking into a function.
|
| |
| |
| |
| | |
Fixes #5560
|
| |
| |
| |
| | |
Fixes gh-8461
|
|\ \
| | |
| | | |
BUG: Fix various problems with the np.ma.masked constant
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
This seems to solve the problem everywhere. It's not clear if this works on PyPy.
Fixes gh-9328
|
| | |
| | |
| | |
| | | |
It's still possible to create duplicate MaskedConstants through `.copy()`
|
| | | |
|
|\ \ \
| | | |
| | | | |
BUG: make np.transpose return a view of the mask
|
| | | |
| | | |
| | | |
| | | | |
Fixes gh-8506 and fixes gh-7483
|
| | | | |
|
| |_|/
|/| | |
|
|\ \ \
| |/ /
| | | |
BUG: Fix loss of masks in masked 0d methods
|
| | |
| | |
| | |
| | |
| | |
| | | |
This also prevents `.squeeze()` from ever returning `masked`, which was incorrect
Fixes gh-9430.
|
|/ / |
|
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
|\ \
| | |
| | | |
ENH: Rearrange testing module to isolate nose dependency.
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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: np.ma.astype fails on structured types
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| | |
Tests for gh-8069
|
| | |
|
|/
|
|
| |
Fill values were not correctly calculated for subdtypes, instead returning `None`
|
|\
| |
| | |
BUG, DEP: Fix masked arrays to properly edit views. ( #5558 )
|
| | |
|
| |
| |
| |
| | |
Bare except is very rarely the right thing
|
| | |
|
|\ \
| | |
| | | |
ENH: Add isnat function and make comparison tests NAT specific
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This may show warnings in downstream projects, which should likely
not be there. We could also drop in the normal assert_equal there,
which would support NaT, and NaN, but checks for scalarness, which
this currently does not (which also could create problems).
Works around the only test with this problem, by using the normal
assert_equal there.
|