summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | DOC: Rephrase docstring of in1d/isinMilesCranmer2022-06-221-2/+2
| | |
| * | MAINT: Remove positionality of kind in isinMilesCranmer2022-06-221-2/+2
| | |
| * | MAINT: Minor suggestions from code reviewMiles Cranmer2022-06-221-4/+3
| | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | DOC: Notes on `kind` to in1d/isin docstringMilesCranmer2022-06-201-10/+18
| | |
| * | DOC: `assume_unique` does not affect table methodMilesCranmer2022-06-201-4/+8
| | |
| * | DOC: Improve clarity of in1d docstringMilesCranmer2022-06-201-6/+6
| | |
| * | MAINT: change kind names for in1dMilesCranmer2022-06-182-49/+49
| | | | | | | | | | | | - Switch dictionary->table, mergesort->sort
| * | DOC: Fix list format for sphinxMiles Cranmer2022-06-181-9/+11
| | |
| * | DOC: Add missing indent in docstringMiles Cranmer2022-06-181-1/+1
| | |
| * | DOC: Fix formatting issues in docstringMilesCranmer2022-06-171-4/+2
| | |
| * | TST: validate in1d errorsMilesCranmer2022-06-171-0/+34
| | |
| * | MAINT: RuntimeError for unexpected integer overflowMilesCranmer2022-06-171-0/+7
| | |
| * | MAINT: Clean up integer overflow check in in1dMilesCranmer2022-06-171-11/+5
| | |
| * | MAINT: Clean up memory checking for in1dMilesCranmer2022-06-171-11/+9
| | |
| * | MAINT: Protect against integer overflow in in1dMilesCranmer2022-06-171-3/+6
| | |
| * | MAINT: kind now uses "mergesort" instead of "sort"MilesCranmer2022-06-172-27/+27
| | |
| * | TST: Use new "kind" argument over "method"MilesCranmer2022-06-171-20/+20
| | |
| * | MAINT: Switch parameter name to 'kind' over 'method'MilesCranmer2022-06-171-24/+28
| | |
| * | MAINT: Switch to old in1d for large memory usageMilesCranmer2022-06-171-13/+18
| | |
| * | MAINT: Fix misplaced default in in1d testMilesCranmer2022-06-101-2/+2
| | |
| * | MAINT: Add back in1d tests of old methodMilesCranmer2022-06-101-17/+17
| | |
| * | DOC: Describe memory considerations in in1d/isinMilesCranmer2022-06-101-10/+22
| | |
| * | DOC: Clean up isin docstringMilesCranmer2022-06-101-3/+3
| | |
| * | MAINT: bool instead of np.bool_ dtypeMilesCranmer2022-06-102-7/+7
| | |
| * | DOC: Improve docstring explanationMilesCranmer2022-06-101-2/+2
| | |
| * | MAINT: Formatting changes for in1dMiles Cranmer2022-06-101-2/+2
| | | | | | | | | Co-authored-by: Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com>
| * | MAINT: Fix error messageMilesCranmer2022-06-101-1/+2
| | |
| * | MAINT: Fix use of dispatcher for isinMilesCranmer2022-06-101-2/+2
| | |
| * | DOC: Describe default in docstringMilesCranmer2022-06-101-2/+2
| | |
| * | MAINT: Fix linting error in testMilesCranmer2022-06-101-1/+2
| | |
| * | DOC: Specify constraints of method in docstringMilesCranmer2022-06-101-2/+4
| | |
| * | MAINT: Update tests to use new `method` argumentMilesCranmer2022-06-101-19/+20
| | |
| * | Add check for methodsMilesCranmer2022-06-101-0/+10
| | |
| * | MAINT: Change `_slow_integer` parameter to `method`MilesCranmer2022-06-101-16/+31
| | |
| * | MAINT: Fix linting errors in in1d testsMilesCranmer2022-06-092-9/+20
| | |
| * | TST: Extend np.in1d tests to old algorithmMilesCranmer2022-06-092-9/+61
| | | | | | | | | | | | | | | - Add flag ``_slow_integer`` to np.isin/np.in1d to force the use of the old isin/in1d algorithm for integers.
| * | MAINT: Check for overflow in integral np.isinMilesCranmer2022-06-091-9/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Before this fix, if, e.g., int8(-100) and int8(100) are the min and max, respectively, of ar2, ar2_range would experience an integer overflow and optimal_parameters would be an invalid value. ``if optimal_parameters:`` would skip the fast integer algorithm regardless, but warnings would be generated when they are unnecessary. - np.log10(... + 1) was changed to np.log10(... + 1.0) to avoid further potential problems from overflow here. - See https://github.com/numpy/numpy/pull/12065 for discussion.
| * | TST: add tests for in1d/isinMilesCranmer2022-06-091-0/+99
| | | | | | | | | | | | | | | | | | - These tests hit the areas of the old algorithm which are now replaced for the majority of cases - Another test tests behaviour of boolean input to isin/in1d
| * | MAINT: Optimize np.isin for boolean arraysMilesCranmer2022-06-091-0/+6
| | | | | | | | | | | | | | | - This change converts boolean input to numpy.isin and numpy.in1d into uint8, allowing the function to use the new optimized code
| * | MAINT: Optimize np.isin for integer arraysMilesCranmer2022-06-091-0/+40
| | | | | | | | | | | | | | | | | | - This optimization indexes with an intermediary boolean array to speed up numpy.isin and numpy.in1d for integer arrays over a range of optimal parameters which are calculated.
* | | BUG: lib: A loadtxt error message had two values reversed.warren2022-06-181-1/+1
| |/ |/| | | | | | | | | | | | | Fix the reversed arguments to the call of PyErr_Format() that generates the exception for an invalid index in usecols. Also fix the format characters in several other calls of PyErr_Format() where the arguments are Py_ssize_t.
* | TST: Clean up an opened temporary file descriptor in loadtxt testsSebastian Berg2022-06-141-0/+5
|/
* TST: Fixup loadtxt int-via-float tests when in release modeSebastian Berg2022-06-091-0/+2
| | | | | | | | | In release mode, the DeprecationWarning is not automatically raised, so we need to ensure this using a warning filter. (Also add missing metadata/info to the deprecation tests) Closes gh-21706
* Merge pull request #16971 from BvB93/nd_gridCharles Harris2022-06-092-17/+54
|\ | | | | BUG: Fix three `complex`- & `float128`-related issues with `nd_grid`
| * TST: Update the `np.mgrid` testsBas van Beek2021-10-131-0/+34
| |
| * BUG: Fixed an issue where `nd_grid` could cast `float128` to `float64`Bas van Beek2021-10-131-17/+20
| |
* | Merge pull request #21661 from BvB93/nanCharles Harris2022-06-031-0/+32
|\ \ | | | | | | TYP, ENH: Add annotations for the `equal_nan` keyword to `np.unique`
| * | TYP, ENH: Add annotations for the `equal_nan` keyword to `np.unique`Bas van Beek2022-06-031-0/+32
| | |
* | | TYP: Remove `normed=` from typing stubsSebastian Berg2022-06-022-10/+5
| | |
* | | DEP: Remove `normed=` keyword argument from histogromsSebastian Berg2022-06-023-120/+15
|/ / | | | | | | | | | | The normed keyword argument has been deprecated for a long time. This removes it, replacing its position with the new density argument.