Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Mark example as random | James Gerity | 2021-01-26 | 1 | -1/+1 |
| | |||||
* | DOC: add example of sampling from 2-D array | James Gerity | 2021-01-24 | 1 | -0/+7 |
| | |||||
* | DOC: Drop '1-D' from docstring | James Gerity | 2021-01-24 | 1 | -1/+1 |
| | |||||
* | Merge pull request #18217 from charris/fix-complexwarning-in-test | Sebastian Berg | 2021-01-24 | 1 | -0/+1 |
|\ | | | | | MAINT: Ignore ComplexWarning in ``test_iter_copy_casts``. | ||||
| * | MAINT: Ignore ComplexWarning in ``test_iter_copy_casts`` | Charles Harris | 2021-01-24 | 1 | -0/+1 |
| | | | | | | | | | | ComplexWarning is showing up in the aarch64 wheel nightly build tests. I don't see them locally, do not know why. | ||||
* | | Merge pull request #18211 from rgommers/fix-shuffle-object | Charles Harris | 2021-01-24 | 4 | -9/+54 |
|\ \ | | | | | | | MAINT: random shuffle: warn on unrecognized objects, fix empty array bug | ||||
| * | | Remove duplicate axis check | Ralf Gommers | 2021-01-23 | 1 | -4/+0 |
| | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com> | ||||
| * | | BUG: shuffling empty array with axis=1 was broken | Ralf Gommers | 2021-01-23 | 4 | -8/+39 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This would trigger: ``` NotImplementedError: Axis argument is only supported on ndarray objects ``` because empty arrays and array scalars would take the "untyped" path. The bug exists only for Generator, not in RandomState (it doesn't have axis keyword for `shuffle`), but update both because it keeps implementations in sync and the change results in more understandable code also for RandomState. | ||||
| * | | MAINT: warn when shuffling unrecognized objects | Ralf Gommers | 2021-01-23 | 2 | -5/+23 |
| | | | | | | | | | | | | Closes gh-18206 | ||||
* | | | Merge pull request #18204 from BvB93/tst_mypy | Charles Harris | 2021-01-24 | 2 | -44/+46 |
|\ \ \ | |_|/ |/| | | TST: Speed up the typing tests | ||||
| * | | MAINT: Do not split at the first `:` character if the path contains a ↵ | Bas van Beek | 2021-01-22 | 1 | -2/+10 |
| | | | | | | | | | | | | windows drive | ||||
| * | | TST: Enable the `show_absolute_path` option in mypy.ini | Bas van Beek | 2021-01-22 | 2 | -4/+2 |
| | | | |||||
| * | | TST: Alias `OUTPUT_MYPY` so that it appears in the local namespace | Bas van Beek | 2021-01-22 | 1 | -6/+13 |
| | | | |||||
| * | | MAINT: Manually assign the full path rather than using `os.path.abspath` | Bas van Beek | 2021-01-22 | 1 | -1/+2 |
| | | | | | | | | | | | | Fixes an issue with the azure (windows) tests where `abspath` would point to the wrong directory | ||||
| * | | TST: Run mypy once and cache the results | Bas van Beek | 2021-01-21 | 1 | -45/+33 |
| | | | |||||
* | | | Merge pull request #18208 from mattip/skip | Charles Harris | 2021-01-24 | 1 | -1/+4 |
|\ \ \ | | | | | | | | | TST: raise memory limit for test | ||||
| * | | | fix from review | mattip | 2021-01-24 | 1 | -2/+5 |
| | | | | |||||
| * | | | TST: raise memory limit for test | mattip | 2021-01-22 | 1 | -1/+1 |
| | | | | |||||
* | | | | STY: unify imports in __init__.py (#18187) | Amarnath1904 | 2021-01-24 | 1 | -3/+3 |
| | | | | | | | | | | | | minor style cleanup | ||||
* | | | | Merge pull request #18214 from Carreau/docstring-array-full | Matti Picus | 2021-01-24 | 1 | -1/+1 |
|\ \ \ \ | | | | | | | | | | | DOC: Double backticks for inline code example. | ||||
| * | | | | DOC: Double backticks for inline code example. | Matthias Bussonnier | 2021-01-23 | 1 | -1/+1 |
| | |_|/ | |/| | | | | | | | | | | | | | | Single backticks are supposed to be use for reference to other object, In this context double backticks (verbatim) appear to be better suited. | ||||
* | | | | DOC: Formatting consistency. | Matthias Bussonnier | 2021-01-23 | 1 | -1/+1 |
|/ / / | | | | | | | | | | | | | | | | Single back ticks are use for references, so this should be either double backticks, or quotes. As `'K'` is used later in the same sentence, and below in the `Notes` section, settle for single quotes. | ||||
* | | | DOC: typo in post-loop return | Joseph Fox-Rabinovitz | 2021-01-22 | 1 | -1/+1 |
|/ / | |||||
* | | ENH: Add dtype support to the array comparison ops (#18128) | Bas van Beek | 2021-01-21 | 7 | -95/+282 |
|/ | | | | | | | | | | | | | | | | | | | | | * ENH: Added `_ArrayLikeNumber` * ENH: Added dtype support to the array comparison ops * MAINT: Made `dtype` and `ndarray` covariant The dtypes scalar-type and ndarrays' dtype are now covariant instead of invariant. This change is necasary in order to ensure that all generic subclasses can be used as underlying scalar type. * TST: Updated the comparison typing tests * MAINT: Fixed an issue where certain `array > arraylike` operations where neglected More specifically operations between array-likes of `timedelta64` and `ndarray`s that can be cast into `timedelta64`. For example: ar_i = np.array([1]) seq_m = [np.timedelta64()] ar_i > seq_m | ||||
* | Merge pull request #18194 from Qiyu8/einsum-twooperands | Charles Harris | 2021-01-20 | 1 | -245/+75 |
|\ | | | | | MAINT: einsum: Optimize the sub function two-operands by using SIMD. | ||||
| * | Optimize the sub function two-operands by using SIMD. | Qiyu8 | 2021-01-19 | 1 | -245/+75 |
| | | |||||
* | | BUG: Keep ignoring most errors during array-protocol lookup | Sebastian Berg | 2021-01-20 | 2 | -7/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes (the later point) in gh-17965 and reverts parts of gh-17817. Shapely did rely on being able to raise a NotImplementedError which then got ignored in the attribute lookup. Arguably, this should probably just raise an AttributeError to achieve that behaviour, but it means we can't just rip the band-aid off here. Since 1.20 is practically released, just reverting most of the change (leaving only recursion and memory error which are both arguably pretty fatal). Ignoring most errors should be deprecated (and I am happy to do so), but it is not important enough for 1.20 or very important in itself. Closes gh-17965 | ||||
* | | Merge pull request #18184 from pearu/17797 | Charles Harris | 2021-01-19 | 6 | -11/+58 |
|\ \ | | | | | | | BUG: Fix f2py bugs when wrapping F90 subroutines. | ||||
| * | | Applied reviewers comments: add ident | Pearu Peterson | 2021-01-19 | 1 | -9/+10 |
| | | | |||||
| * | | Apply reviewer comments. | Pearu Peterson | 2021-01-19 | 2 | -6/+4 |
| | | | |||||
| * | | Apply reviewers comments. | Pearu Peterson | 2021-01-19 | 2 | -12/+12 |
| | | | |||||
| * | | Add test for gh17797. | Pearu Peterson | 2021-01-18 | 4 | -6/+47 |
| | | | |||||
| * | | BUG: f2py specific __user__ modules should not be used in Fortran sources to ↵ | Pearu Peterson | 2021-01-18 | 1 | -3/+6 |
| | | | | | | | | | | | | be compiled. Closes #17797. | ||||
| * | | BUG: subroutines using assumed shape arrays must be treated as F90 codes. ↵ | Pearu Peterson | 2021-01-18 | 1 | -2/+6 |
| | | | | | | | | | | | | Don't split inline comments. | ||||
| * | | BUG: Fix detecting Fortran 90+ source format. | Pearu Peterson | 2021-01-18 | 1 | -1/+1 |
| |/ | |||||
* | | Merge pull request #18174 from BvB93/covariant | Charles Harris | 2021-01-19 | 5 | -160/+169 |
|\ \ | | | | | | | MAINT: Changed the `NBitBase` variancy in `number` from co- to invariant | ||||
| * | | DOC: Added a missing `Union` import | Bas van Beek | 2021-01-19 | 1 | -1/+1 |
| | | | |||||
| * | | TST: Added a tests for `number` invariancy | Bas van Beek | 2021-01-19 | 1 | -0/+6 |
| | | | |||||
| * | | MAINT: Adjusted the return-type of `number` ops to `Any` | Bas van Beek | 2021-01-19 | 1 | -1/+1 |
| | | | |||||
| * | | DOC,TST: Update the `NBitBase` example | Bas van Beek | 2021-01-19 | 2 | -4/+7 |
| | | | |||||
| * | | MAINT: Changed the `NBitBase` variancy in `number` from co- to invariant | Bas van Beek | 2021-01-19 | 2 | -154/+154 |
| | | | |||||
* | | | Merge pull request #18193 from jeertmans/docs/random/typo | Charles Harris | 2021-01-19 | 1 | -1/+1 |
|\ \ \ | | | | | | | | | MAINT: Fix typo in docstring example | ||||
| * | | | Fixing typo in docstring | Eertmans | 2021-01-19 | 1 | -1/+1 |
| |/ / | |||||
* | | | BUG: threads.h existence test requires GLIBC > 2.12. (#18180) | Pearu Peterson | 2021-01-19 | 1 | -1/+6 |
|/ / | | | | | | | | | * defined(__STDC_NO_THREADS__) can be trusted only when using glibc > 2.12 * Add __GLIBC__ defined check. | ||||
* | | Merge pull request #18191 from pmav99/panos/fix_18190 | Charles Harris | 2021-01-19 | 1 | -2/+2 |
|\ \ | | | | | | | STY: Use explicit reexports for numpy.typing objects | ||||
| * | | STY: Use explicit reexports for numpy.typing objects | pmav99 | 2021-01-19 | 1 | -2/+2 |
| |/ | | | | | | | | | | | | | | | | | `mypy --strict` is disabling `implicit_reexport`. Consequently, when we try to import `ArrayLike` and `DTypeLike` from `numpy.typing`, mypy throws an error. With this commit we add explicit "reexports" for these two objects. Fixes #18190 | ||||
* | | MAINT: Simplify a union | Bas van Beek | 2021-01-18 | 3 | -22/+21 |
| | | | | | | | | `_BoolLike_co` is already a subtype of `_IntLike_co`, no nead the use an explicit union here | ||||
* | | STY: Cleaned up the `numpy.typing` imports | Bas van Beek | 2021-01-18 | 1 | -4/+13 |
| | | |||||
* | | MAINT: Renamed `_ArrayLike<X>` to `_ArrayLike<X>_co` | Bas van Beek | 2021-01-18 | 2 | -23/+23 |
| | | |||||
* | | MAINT: Renamed `<X>Like` to `<X>Like_co` | Bas van Beek | 2021-01-18 | 6 | -115/+115 |
|/ |