Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | | DOC: Rephrase docstring of in1d/isin | MilesCranmer | 2022-06-22 | 1 | -2/+2 | |
| | | | ||||||
| * | | MAINT: Remove positionality of kind in isin | MilesCranmer | 2022-06-22 | 1 | -2/+2 | |
| | | | ||||||
| * | | MAINT: Minor suggestions from code review | Miles Cranmer | 2022-06-22 | 1 | -4/+3 | |
| | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net> | |||||
| * | | DOC: Notes on `kind` to in1d/isin docstring | MilesCranmer | 2022-06-20 | 1 | -10/+18 | |
| | | | ||||||
| * | | DOC: `assume_unique` does not affect table method | MilesCranmer | 2022-06-20 | 1 | -4/+8 | |
| | | | ||||||
| * | | DOC: Improve clarity of in1d docstring | MilesCranmer | 2022-06-20 | 1 | -6/+6 | |
| | | | ||||||
| * | | MAINT: change kind names for in1d | MilesCranmer | 2022-06-18 | 2 | -49/+49 | |
| | | | | | | | | | | | | - Switch dictionary->table, mergesort->sort | |||||
| * | | DOC: Fix list format for sphinx | Miles Cranmer | 2022-06-18 | 1 | -9/+11 | |
| | | | ||||||
| * | | DOC: Add missing indent in docstring | Miles Cranmer | 2022-06-18 | 1 | -1/+1 | |
| | | | ||||||
| * | | DOC: Fix formatting issues in docstring | MilesCranmer | 2022-06-17 | 1 | -4/+2 | |
| | | | ||||||
| * | | TST: validate in1d errors | MilesCranmer | 2022-06-17 | 1 | -0/+34 | |
| | | | ||||||
| * | | MAINT: RuntimeError for unexpected integer overflow | MilesCranmer | 2022-06-17 | 1 | -0/+7 | |
| | | | ||||||
| * | | MAINT: Clean up integer overflow check in in1d | MilesCranmer | 2022-06-17 | 1 | -11/+5 | |
| | | | ||||||
| * | | MAINT: Clean up memory checking for in1d | MilesCranmer | 2022-06-17 | 1 | -11/+9 | |
| | | | ||||||
| * | | MAINT: Protect against integer overflow in in1d | MilesCranmer | 2022-06-17 | 1 | -3/+6 | |
| | | | ||||||
| * | | MAINT: kind now uses "mergesort" instead of "sort" | MilesCranmer | 2022-06-17 | 2 | -27/+27 | |
| | | | ||||||
| * | | TST: Use new "kind" argument over "method" | MilesCranmer | 2022-06-17 | 1 | -20/+20 | |
| | | | ||||||
| * | | MAINT: Switch parameter name to 'kind' over 'method' | MilesCranmer | 2022-06-17 | 1 | -24/+28 | |
| | | | ||||||
| * | | MAINT: Switch to old in1d for large memory usage | MilesCranmer | 2022-06-17 | 1 | -13/+18 | |
| | | | ||||||
| * | | MAINT: Fix misplaced default in in1d test | MilesCranmer | 2022-06-10 | 1 | -2/+2 | |
| | | | ||||||
| * | | MAINT: Add back in1d tests of old method | MilesCranmer | 2022-06-10 | 1 | -17/+17 | |
| | | | ||||||
| * | | DOC: Describe memory considerations in in1d/isin | MilesCranmer | 2022-06-10 | 1 | -10/+22 | |
| | | | ||||||
| * | | DOC: Clean up isin docstring | MilesCranmer | 2022-06-10 | 1 | -3/+3 | |
| | | | ||||||
| * | | MAINT: bool instead of np.bool_ dtype | MilesCranmer | 2022-06-10 | 2 | -7/+7 | |
| | | | ||||||
| * | | DOC: Improve docstring explanation | MilesCranmer | 2022-06-10 | 1 | -2/+2 | |
| | | | ||||||
| * | | MAINT: Formatting changes for in1d | Miles Cranmer | 2022-06-10 | 1 | -2/+2 | |
| | | | | | | | | | Co-authored-by: Hameer Abbasi <2190658+hameerabbasi@users.noreply.github.com> | |||||
| * | | MAINT: Fix error message | MilesCranmer | 2022-06-10 | 1 | -1/+2 | |
| | | | ||||||
| * | | MAINT: Fix use of dispatcher for isin | MilesCranmer | 2022-06-10 | 1 | -2/+2 | |
| | | | ||||||
| * | | DOC: Describe default in docstring | MilesCranmer | 2022-06-10 | 1 | -2/+2 | |
| | | | ||||||
| * | | MAINT: Fix linting error in test | MilesCranmer | 2022-06-10 | 1 | -1/+2 | |
| | | | ||||||
| * | | DOC: Specify constraints of method in docstring | MilesCranmer | 2022-06-10 | 1 | -2/+4 | |
| | | | ||||||
| * | | MAINT: Update tests to use new `method` argument | MilesCranmer | 2022-06-10 | 1 | -19/+20 | |
| | | | ||||||
| * | | Add check for methods | MilesCranmer | 2022-06-10 | 1 | -0/+10 | |
| | | | ||||||
| * | | MAINT: Change `_slow_integer` parameter to `method` | MilesCranmer | 2022-06-10 | 1 | -16/+31 | |
| | | | ||||||
| * | | MAINT: Fix linting errors in in1d tests | MilesCranmer | 2022-06-09 | 2 | -9/+20 | |
| | | | ||||||
| * | | TST: Extend np.in1d tests to old algorithm | MilesCranmer | 2022-06-09 | 2 | -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.isin | MilesCranmer | 2022-06-09 | 1 | -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/isin | MilesCranmer | 2022-06-09 | 1 | -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 arrays | MilesCranmer | 2022-06-09 | 1 | -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 arrays | MilesCranmer | 2022-06-09 | 1 | -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. | warren | 2022-06-18 | 1 | -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 tests | Sebastian Berg | 2022-06-14 | 1 | -0/+5 | |
|/ | ||||||
* | TST: Fixup loadtxt int-via-float tests when in release mode | Sebastian Berg | 2022-06-09 | 1 | -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_grid | Charles Harris | 2022-06-09 | 2 | -17/+54 | |
|\ | | | | | BUG: Fix three `complex`- & `float128`-related issues with `nd_grid` | |||||
| * | TST: Update the `np.mgrid` tests | Bas van Beek | 2021-10-13 | 1 | -0/+34 | |
| | | ||||||
| * | BUG: Fixed an issue where `nd_grid` could cast `float128` to `float64` | Bas van Beek | 2021-10-13 | 1 | -17/+20 | |
| | | ||||||
* | | Merge pull request #21661 from BvB93/nan | Charles Harris | 2022-06-03 | 1 | -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 Beek | 2022-06-03 | 1 | -0/+32 | |
| | | | ||||||
* | | | TYP: Remove `normed=` from typing stubs | Sebastian Berg | 2022-06-02 | 2 | -10/+5 | |
| | | | ||||||
* | | | DEP: Remove `normed=` keyword argument from histogroms | Sebastian Berg | 2022-06-02 | 3 | -120/+15 | |
|/ / | | | | | | | | | | | The normed keyword argument has been deprecated for a long time. This removes it, replacing its position with the new density argument. |