| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
RISC-V (pronounced "RISC Five") is an open source instruction set
architecture (ISA). The 64-bit version may run the Linux kernel and the
usual stack of applications on top of it, including Python.
This patch adds support for riscv64 to Numpy. With it the full testsuite
passes for both Python 2.7 and 3.6, with the only exception of
test_float (test_numeric.TestBoolCmp). See #8213 for details.
Closes: #8213
|
| |\
| |
| | |
ENH: datetime64: support AC dates starting with '+'
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Numpy allows negatives signs but throws a value error when parsing
datetime strings starting with '+':
>>> np.datetime64('+1000-01-01T00:00:00Z')
ValueError: Error parsing datetime string "+1000-01-01T00:00:00Z" at position 0
Since the default is positive years, we just need to skip the '+'
character.
Fixes #10810.
|
| |\ \
| |/
|/| |
ENH: Add "stablesort" option to inp.sort as an alias for "mergesort".
|
| | | |
|
| | | |
|
| | |
| |
| |
| | |
Closes #10784
|
| |\ \
| | |
| | | |
BUG: Fix obvious warning bugs.
|
| | | |
| | |
| | |
| | | |
The warning type is the second, not the first, argument.
|
| |/ /
| |
| | |
Found via `codespell -q 3 -I ../numpy-whitelist.txt`
|
| | | |
|
| |\ \
| | |
| | | |
MAINT: Rearrange `numpy/testing` files
|
| | | |
| | |
| | |
| | |
| | | |
Downstream projects were importing directly from the testing modules
rather than from testing. Discourage this.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is to prepare for the switch to pytest.
* Rename `numpy/testing/nose_tools` to `numpy/testing/_private`.
* Redirect imports as needed.
* Copy `_testutils.py` from scipy to `numpy/testing/_private`.
* Rename `_testutils.py` to `_pytester.py` and remove unneeded bits.
|
| |\ \ \
| | | |
| | | | |
BUG: np.ma.flatnotmasked_contiguous behaves differently on mask=nomask and mask=zeros
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | |/ / |
|
| |\ \ \
| | | |
| | | | |
BUG: Allow spaces in output string of einsum
|
| | |/ /
| | |
| | |
| | |
| | |
| | | |
Also produce more useful error messages
Fixes gh-10794
|
| |\ \ \
| | | |
| | | | |
BUG: error checking before mapping of einsum axes.
|
| | |/ / |
|
| |\ \ \
| |/ /
|/| | |
BUG: Fix SQRT_MIN for platforms with 8-byte long double
|
| | | | |
|
| | | |
| | |
| | |
| | | |
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.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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')
|
| |/ / |
|
| |\ \
| | |
| | | |
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
|
| | |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
| |
| |
| |
| |
| | |
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: Move bin estimator documentation from `histogram` to `histogram_bin_edges`
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
BUG: fix complex casting error in cov with aweights
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When using cov with a complex input and with aweights specified, cov
will error as a result of trying to cast a complex value into a float64.
This comes about since average is used to calculate the sum of the
weights from aweights. average returns the sum of weights as the same
type as its result, not the weights type. For a complex input m, and
any type for aweights, this would result in a complex value for fact.
It appears the primary purpose of np.float64(fact) is to provide a NaN
value from the divide when fact is an integer zero. This has been
replaced by using numpy.divide to replicate the same behavior, but to
also handle complex types.
|
| | |/ /
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* 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
|