Age | Commit message (Collapse) | Author | Files | Lines |
|
BUG: np.ma.flatnotmasked_contiguous behaves differently on mask=nomask and mask=zeros
|
|
DOC: Update link to tox in development docs (#10806)
|
|
|
|
BUG: Allow spaces in output string of einsum
|
|
BUG: error checking before mapping of einsum axes.
|
|
BUG: Fix SQRT_MIN for platforms with 8-byte long double
|
|
|
|
Depending on the input, this would return:
* A single slice, if mask=nomask
* A list of slices, if mask is an array
* None, if mask is fully masked
The documented return value is a list, and all downstream callers of this
function end up having to correct for it not being one.
This affects the result of np.ma.notmasked_contiguous, which also did not
document these unusual return values.
|
|
|
|
Also produce more useful error messages
Fixes gh-10794
|
|
Unifies scalar and ndarray pep3118 format string generation
|
|
TST: Various fixes prior to switching to pytest
|
|
These tests were not included in the `setup.py` file and consequently
not available in the installed numpy for testing.
|
|
Avoids pytest collection time warnings.
|
|
The renamed C modules provide low level functions for testing. The
rename marks them as private functions and makes them invisible to
pytest by default.
|
|
Add class CommaDecimalPointLocale that can be used for testing in a
LC_NUMERIC locale where the decimal point is a comma. It functions
either as a context manager or as a base class with setup and teardown
methods. Both uses raise SkipTest when no suitable locale is available.
|
|
DOC: Fixed author name in reference to book
|
|
The `assert_raises` and `assert_raises_regex` testing utilities were
being imported from nose, which in turn took them from unittest
`assertRaises` and `assertRaisesRegex`. We takeover the nose procedure
here so that these commonly used utilities no longer have a nose
dependence.
The `raises` decorator continues to have a nose dependency, but that
only shows up when used, and NumPy does not use it. Document that and
otherwise leave it be.
|
|
('van' vs 'Van')
|
|
BUG: test, fix for missing flags['WRITEBACKIFCOPY'] key
|
|
|
|
MAINT: Remove use of unittest in NumPy tests.
|
|
This removes a few left over uses of unittest. The main changes apart
from removal of Test case are:
* `setUp` replaced by nose and pytest compatible `setup`
* `tearDown` replaced by nose and pytest compatible `teardown`
* `assertRaises` replaced by `assert_raises`
* `assertEqual` replaced by `assert_equal`
The last two are in `numpy/testings/tests/test_utils.py`, so may seem a
but circular, but at least are limited to those two functions.
The use of `setup` and `teardown`, can be fixed up with the pytest
equivalents after we have switched to pytest.
|
|
|
|
|
|
MAINT: Remove the unused scalarmath getters for fmod and sqrt
|
|
MAINT, TST: Fixes for Python 3.7
|
|
Cython 0.28.0 is out and should be compatible with the upcoming
Python 3.7, so start testing with that Python version.
|
|
The PyObject_AsWriteBuffer and PyObject_AsReadBuffer functions are
deprecated in Python 3. Replace them with the Py_buffer based
replacements. Much of that was done prior to this patch, but some uses
were missed.
|
|
The contents of the module warnings registries was made more module
specific in Python 3.7 and consequently the tests of the context
managers clear_and_catch_warnings and suppress_warnings need updating.
|
|
|
|
TST: Change most travisci tests to Python3.6.
|
|
DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`
|
|
Python 3.6 is more current and needs more testing than it is currently
getting. This is also useful preparation for droppping 2.7.
|
|
|
|
BUG: fix complex casting error in cov with aweights
|
|
* Upload devdocs and neps after build
* Install numpydoc
* Fix masked array documentation injection
`doc_note` appends a `Notes` section to docstrings, which may lead to
duplicate sections.
* Add deploy key for neps repo
Note that we have to explicitly reset the ~/.ssh/config to only leave
one SSH key
* Only deploy on master branch
* Blow away previous dev docs after each upload
* Add tool to upload files to remote repo
* Remove numpydoc from pip install; it is included as a submodule
* Avoid using invalid escape code
* Rename repo upload tool
* Use check_call to simplify doc pushing tool
|
|
|
|
Fixes #10183
Documentation is copied from np.histogram
|
|
MAINT: Stop using non-tuple indices internally
|
|
DOC: Add graph showing different behaviors of np.percentile
|
|
In Python 3.7 the return type of PyUnicode_AsUTF8 has changed from
`char *` to `const char *` and the variable the return is stored in
needs to match.
|
|
DOC: Fix typo in warning message
|
|
DOC: a.size and np.prod(a.shape) are not equivalent
|
|
With thanks to @ricardoV94 for inspiring this
|
|
|
|
|
|
|
|
|
|
MAINT: Import abstract classes from collections.abc
|