summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Minor RST formatting. (#16792)Matthias Bussonnier2020-07-093-4/+4
| | | DOC: fixes to capitalization and header lines
* MAINT: Tidy exception handling in _datasource.py (#16761)Sarthak Vineet Kumar2020-07-081-7/+3
| | | Remove unnecessary try/except from DataSource.
* DOC: add example to unique() and make connection to repeat() (#16743)Allen Downey2020-07-071-1/+13
| | | I suggest adding `repeat` to the "See also" section of `unique` (and vice versa) since each is the inverse of the other.
* MAINT: Chain exceptions in npyio.py (gh16121)Kerem Hallaç2020-06-301-4/+6
| | | | | | this solution is related to the following issue #15986 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
* MAINT: Fixup quantile tests to not use `np.float`Sebastian Berg2020-06-271-8/+9
| | | | | | This is deprecated usage, also small code style fixups since I was looking at it anyway. YMMV, but I think its a bit/nicer more compact now.
* Merge pull request #16273 from CloseChoice/BUG-order_percentile-monotonicallySebastian Berg2020-06-272-1/+78
|\ | | | | BUG: Order percentile monotonically
| * limit test_quantile_monotonicTobias Pitters2020-06-121-3/+8
| |
| * Update numpy/lib/tests/test_function_base.pyTobias Pitters2020-06-121-4/+4
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * Update numpy/lib/function_base.pyTobias Pitters2020-06-121-11/+6
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * fix _scalar_or_0d in _lerpTobias Pitters2020-06-101-1/+1
| |
| * check for `greater-equal` in lerp monotony testTobias Pitters2020-06-101-1/+1
| |
| * check for `greater-equal` in lerp monotony testTobias Pitters2020-06-101-1/+1
| |
| * make lerp be able to handle 0d casesTobias Pitters2020-06-102-2/+8
| |
| * refactor quantile testsTobias Pitters2020-05-271-4/+2
| |
| * limit range of lerp inputsTobias Pitters2020-05-271-10/+10
| |
| * Update numpy/lib/tests/test_function_base.pyTobias Pitters2020-05-271-2/+8
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * remove debug statementsTobias Pitters2020-05-271-1/+0
| |
| * fix lerp function and corresponding testsTobias Pitters2020-05-272-7/+19
| |
| * Update numpy/lib/tests/test_function_base.pyTobias Pitters2020-05-271-0/+1
| | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
| * use symmetric lerp functionTobias Pitters2020-05-272-9/+5
| |
| * fix symmetry testTobias Pitters2020-05-272-7/+7
| |
| * remove pdb; add hypothesis tests for monotony, boundedness and symmetry of lerpTobias Pitters2020-05-272-2/+39
| |
| * add hypothesis test, fix bug of non-monotonic ordering of quantile functionCloseChoice2020-05-272-2/+17
| |
| * BUG: np.quantile ordering not monotonicTobias Pitters2020-05-271-0/+7
| |
* | Merge pull request #16690 from ↵Matti Picus2020-06-261-8/+20
|\ \ | | | | | | | | | | | | Iamsoto/better_docstring_for_numpy_lib_format_descr_to_dtype DOC: fixed docstring for descr_to_dtype
| * | DOC: fixed docstring for descr_to_dtypeiamsoto2020-06-251-8/+20
| | | | | | | | | | | | DOC: fixed docstring for descr_to_dtype
* | | DOC: rm matrix from triu docstring.Ross Barnowski2020-06-251-1/+1
|/ / | | | | | | | | Replace "matrix" with "array" to avoid confusion re: np.matrix. Consistent with other np.tri\* functions.
* | Fix broken link in open_memmap See AlsoRoss Barnowski2020-06-241-1/+1
| |
* | MAINT: lib: A few PEP-8 fixes.Warren Weckesser2020-06-181-3/+6
| |
* | MAINT: lib: In loadtxt, move some code out of a try/finally block.Warren Weckesser2020-06-181-5/+8
| | | | | | | | | | | | In loadtxt, there is a try/finally block that ensures that the file is closed if it was opened in the function. Some code that did not need to be in that block was moved up, outside the try/finally block.
* | MAINT: lib: In loadtxt, validate ndmin argument earlier.Warren Weckesser2020-06-181-3/+4
| | | | | | | | | | | | Validation of `ndmin` is moved to the beginning of the function, so we don't read the entire file only to raise an exception at the end because of a bad argument.
* | MAINT: lib: Move some nested function definitions in loadtxt.Warren Weckesser2020-06-181-61/+70
| | | | | | | | | | This change moves the nested function definitions in loadtxt to the top of the function body.
* | MAINT: Remove uses of scalar aliasesEric Wieser2020-06-101-1/+1
| | | | | | | | This is a follow up to d1d9dd58e2de5f3b69c02b104e1daaeec1f38d9f, as more regressions in this style have been introduced since that commit.
* | Merge pull request #16500 from bjnath/move_c_style_linkRalf Gommers2020-06-061-2/+2
|\ \ | | | | | | DOC: Point Contributing page to new NEP 45
| * | DOC: Use intersphinx for NEP referencesBen Nathanson2020-06-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per #16500 discussion, adds link updates to PR. Replaces NEP URLs with intersphinx links in these files: * doc/HOWTO_RELEASE.rst.txt * doc/source/dev/howto-docs.rst * numpy/doc/dispatch.py * numpy/lib/format.py and incorporates @rossbar's #16502 change of `config.py`.
* | | DOC: Fixes for 18 broken links (#16472)bjnath2020-06-062-4/+3
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Fixes for 18 broken links This, with PR #16465, should fix nearly all the remaining broken links on the site. 4 or 5 others should be easy to fix and just need attention from someone more knowledgeable -- will open an issue. For release notes with dead links, I could usually find links on archive.org for roughly contemporary versions. * DOC: Update to "Fixes for 18 broken links #16472" * Obsolete links, previously commented out, now deleted: https://github.com/numpy/numpy/pull/16472#discussion_r433928958 * Semantic markup for reference to Python class: https://github.com/numpy/numpy/pull/16472#discussion_r433553928 * Missing :ref: in internal link: https://github.com/numpy/numpy/pull/16472#discussion_r433554484 Not included: Resolution on using external/internal doc link in .py: https://github.com/numpy/numpy/pull/16472#discussion_r433554824 * DOC: Add internal link for 'Fixes for 18 broken links' PR #16472 Making reference [1] an internal link in function_base.py => numpy.vectorize.html * DOC: Redirect 2 link fixes in PR #16472 * governance.rst link reverted * ununcs.rst `overridden` link goes where it was meant to per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
* | MAINT: use zip instead of range in piecewiseEric Wieser2020-06-011-8/+6
| | | | | | | | Minor cleanup while looking at something else.
* | DOC: make clearer that sinc is normalized by a factor piRalf Gommers2020-05-301-4/+11
| | | | | | | | Addresses gh-13457
* | TST: Simplify assert_warns in test_io.pySeth Troisi2020-05-281-17/+8
|/
* Merge pull request #16348 from seberg/fromany-leakCharles Harris2020-05-231-0/+9
|\ | | | | BUG: Fix dtype leak in `PyArray_FromAny` error path
| * BUG: Fix dtype leak in `PyArray_FromAny` error pathSebastian Berg2020-05-221-0/+9
| | | | | | | | | | | | | | | | Also adds a test to bincount which will run into this path. The leak can be triggered by using a reference count checker on the test suit (e.g. pytest-leaks). Closes gh-16339
* | Merge pull request #16349 from larsoner/depCharles Harris2020-05-232-5/+17
|\ \ | | | | | | BUG: Indentation for docstrings
| * | BUG: Indentation for docstringsEric Larson2020-05-222-5/+17
| |/
* | Merge pull request #16298 from eric-wieser/fix-np.infoSebastian Berg2020-05-221-35/+7
|\ \ | |/ |/| BUG: np.info does not show keyword-only arguments
| * BUG: np.info does not show keyword-only argumentsEric Wieser2020-05-191-35/+7
| | | | | | | | | | | | Using inspect.signature instead of `np.compat.getargspec` solves this problem. `inspect.signature` also handles stripping the `self` argument of methods for us.
* | Merge pull request #16332 from ↵Matti Picus2020-05-221-0/+4
|\ \ | | | | | | | | | | | | LSchroefl/link_SciPy_multidimensional_interpolation DOC: link np.interp to SciPy's interpolation functions (closes #14154)
| * | Update numpy/lib/function_base.pyLSchroefl2020-05-221-1/+1
| | | | | | | | | Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
| * | DOC: link np.interp to SciPy's multidimensional interpolation functions (#14154)skywalker2020-05-211-0/+4
| |/
* | Merge pull request #16239 from seberg/reimport-do-not-set-docsMatti Picus2020-05-201-1/+39
|\ \ | | | | | | BUG,DOC: Allow attach docs twice but error if wrong
| * | TST: Add a test for np.add_docstringSebastian Berg2020-05-201-1/+39
| | | | | | | | | | | | | | | Its not quite the right file, but close to newdoc seemed sensible and we do not have a "right" file right now...