Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | BUG: Preserve field order in join_by, avoids FutureWarning | Allan Haldane | 2017-05-09 | 2 | -6/+49 | |
| | | | | | | | | Fixes #8940 | |||||
* | | ENH: Spelling fixes | Ville Skyttä | 2017-05-09 | 8 | -9/+9 | |
|/ | ||||||
* | DOC: fix docstring for np.isin | Stephan Hoyer | 2017-05-07 | 1 | -0/+1 | |
| | ||||||
* | ENH: add divmod support to NDArrayOperatorsMixin | Stephan Hoyer | 2017-05-07 | 2 | -40/+60 | |
| | ||||||
* | BUG: np.ma.mr_['r',...] does not return masked arrays | Eric Wieser | 2017-05-05 | 1 | -3/+3 | |
| | ||||||
* | BUG: np.r_['r',...] crashes on scalars | Eric Wieser | 2017-05-05 | 2 | -1/+6 | |
| | ||||||
* | BUG: np.r_['rc'] is treated as np.r_['r'], not an error | Eric Wieser | 2017-05-05 | 2 | -1/+3 | |
| | ||||||
* | TST: Add some tests for passing r and c to r_ | Eric Wieser | 2017-05-05 | 1 | -0/+13 | |
| | ||||||
* | MAINT: Use enumerate instead of range(len(...)) | Eric Wieser | 2017-05-05 | 1 | -15/+14 | |
| | ||||||
* | BUG: Remove mutable state from AxisConcatenator | Eric Wieser | 2017-05-05 | 2 | -29/+37 | |
| | | | | Fixes #8815 | |||||
* | MAINT: Remove code duplicated from np.r_ in np.ma.mr_ | Eric Wieser | 2017-05-05 | 1 | -1/+3 | |
| | | | | | Also adds a test for the disabled-by-design behaviour - this would return raw matrices, not masked arrays | |||||
* | ENH: Add isin, genereralizing in1d to ND arrays (#8423) | B R S Recht | 2017-05-05 | 3 | -7/+145 | |
| | | | | | | This fixes gh-8331 Also update the docs for arraysetops to remove the outdated "1D" from the description, which was already incorrect for np.unique. | |||||
* | ENH: add __pos__ to NDArrayOperatorsMixin | Stephan Hoyer | 2017-04-30 | 2 | -3/+4 | |
| | ||||||
* | Merge pull request #8885 from juliantaylor/tracemalloc | Charles Harris | 2017-04-30 | 1 | -1/+2 | |
|\ | | | | | ENH: add support for python3.6 memory tracing | |||||
| * | ENH: add support for python3.6 memory tracing | Julian Taylor | 2017-04-28 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | Python 3.6 added a private API for tracing arbitrary memory allocations so the tracemalloc module [0] can be used with numpy. closes gh-4663 [0] https://docs.python.org/3/library/tracemalloc.html | |||||
* | | Merge pull request #9013 from eric-wieser/fix-nanfuncs | Charles Harris | 2017-04-28 | 2 | -15/+31 | |
|\ \ | |/ |/| | BUG: Fix np.lib.nanfunctions on object arrays | |||||
| * | BUG: Fix incorrect behavior of nanfunctions on object arrays | Eric Wieser | 2017-04-29 | 2 | -8/+28 | |
| | | | | | | | | Fixes gh-8974 and gh-9008 | |||||
| * | MAINT: Remove weird create-a-copy dance | Eric Wieser | 2017-04-27 | 1 | -6/+2 | |
| | | ||||||
* | | Merge pull request #8996 from eric-wieser/fix-ufunclike | Marten van Kerkwijk | 2017-04-27 | 2 | -27/+84 | |
|\ \ | | | | | | | BUG/DEP: Make ufunclike functions more ufunc-like | |||||
| * | | BUG: Return scalars from ufunclike objects | Eric Wieser | 2017-04-26 | 2 | -17/+35 | |
| | | | | | | | | | | | | | | | | | | No need to reinvent the wheel here - the ufunc machinery will handle the out arguments Fixes #8993 | |||||
| * | | DEP: Deprecate calling the `out` argument `y` | Eric Wieser | 2017-04-26 | 2 | -20/+59 | |
| | | | | | | | | | | | | Fixes gh-8995 | |||||
* | | | Merge pull request #8988 from eric-wieser/document-2522 | Charles Harris | 2017-04-27 | 1 | -0/+17 | |
|\ \ \ | | | | | | | | | DOC: Explain the behavior of diff on unsigned types | |||||
| * | | | DOC: Explain the behavior of diff on unsigned types | Eric Wieser | 2017-04-25 | 1 | -0/+17 | |
| |/ / | | | | | | | | | | Fixes #2522 | |||||
* | | | MAINT: Set the __name__ of generated methods | Eric Wieser | 2017-04-27 | 1 | -30/+37 | |
| |/ |/| | | | | | Barely useful, but means that the function name is helpful if printed. | |||||
* | | ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarray | Stephan Hoyer | 2017-04-27 | 2 | -40/+36 | |
| | | | | | | | | | | | | | | | | | | * ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarray Per our discussion in https://github.com/numpy/numpy/pull/8247#discussion_r112825050 * add back in accidentally dropped __repr__ | |||||
* | | BUG: Fix ArrayLike(NDArrayOperatorsMixin) operations with object() | Stephan Hoyer | 2017-04-27 | 2 | -12/+31 | |
| | | ||||||
* | | ENH: Add NDArrayOperatorsMixin mixin class. | Stephan Hoyer | 2017-04-27 | 3 | -0/+358 | |
|/ | | | | | | This mixin class provides an easy way to implement arithmetic operators that defer to __array_ufunc__ like numpy.ndarray in non-ndarray subclasses. | |||||
* | DOC: Correct shape of edges in np.histogram2d (#8980) | Importance of Being Ernest | 2017-04-23 | 1 | -2/+2 | |
| | | | | | If nx and ny are the bin counts (as stated in the bins argument's text), then the return H has indeed shape (nx, ny). However, the returned xedges and yedges will then have shape (nx+1,) and (ny+1,) respectively. Fixes #8979 | |||||
* | Merge pull request #6632 from mcmtroffaes/feature/fromfile-ioopen-bug | Charles Harris | 2017-04-14 | 1 | -2/+3 | |
|\ | | | | | TST/BUG: fromfile - fix test and expose bug with io class argument | |||||
| * | BUG: npy_PyFile_Dup2 - fix PyFile_AsFile failing on io style classes | Matthias C. M. Troffaes | 2016-09-08 | 1 | -2/+3 | |
| | | | | | | | | | | | | | | | | | | | | This bug only manifests itself in the Python 2 code path. Falls back to the current Python 3 code path also on Python 2 because the Python 3 code path is written precisely to handle this situation. Also fix tests, and clarify in the documentation that the current implementation requires the stream to be seekable. | |||||
* | | Merge pull request #8643 from eric-wieser/fix-8642 | Eric Wieser | 2017-04-11 | 2 | -1/+18 | |
|\ \ | | | | | | | BUG: Fix double-wrapping of object scalars | |||||
| * | | BUG: Fix double-wrapping of object scalars | Eric Wieser | 2017-04-06 | 2 | -1/+18 | |
| | | | | | | | | | | | | Fixes #8642 | |||||
* | | | DOC: Fix typos in percentile (#8900) | Baurzhan Muftakhidinov | 2017-04-06 | 2 | -4/+4 | |
| | | | ||||||
* | | | Merge pull request #8737 from eric-wieser/squeeze-expand-docs | Charles Harris | 2017-04-01 | 1 | -0/+2 | |
|\ \ \ | | | | | | | | | DOC: Mention that expand_dims and squeeze are inverses | |||||
| * | | | DOC: expand_dims and squeeze are inverses | Eric Wieser | 2017-03-06 | 1 | -0/+2 | |
| | | | | | | | | | | | | | | | | [ci skip] | |||||
* | | | | MAINT: Rename _validate_axis, and document it | Eric Wieser | 2017-03-28 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | MAINT: Use _validate_axis inside _ureduce | Eric Wieser | 2017-03-28 | 3 | -33/+33 | |
| | | | | | | | | | | | | | | | | This fixes an omission where duplicate axes would only be detected when positive | |||||
* | | | | MAINT: Reuse _validate_axis in np.gradient | Eric Wieser | 2017-03-28 | 2 | -16/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This also means that its axis argument invokes operator.index like others do. _validate_axis currently accepts lists of axes, which is a bug. | |||||
* | | | | DOC: Spell out note for `dstack` | Søren Fuglede Jørgensen | 2017-03-26 | 1 | -1/+2 | |
| | | | | | | | | | | | | This adds to the documentation on `dstack` the notes from `hstack` and `vstack` about dimensionality requirements. | |||||
* | | | | Merge pull request #8388 from gfyoung/real-imag-scalar | seberg | 2017-03-26 | 2 | -12/+66 | |
|\ \ \ \ | | | | | | | | | | | API: Return scalars for scalar inputs to np.real/imag | |||||
| * | | | | API: Return scalars for scalar inputs to np.real/imag | gfyoung | 2017-03-25 | 2 | -12/+66 | |
| | | | | | | | | | | | | | | | | | | | | Closes gh-8386. | |||||
* | | | | | Merge pull request #8348 from anntzer/bincount-zero-minlength | Eric Wieser | 2017-03-26 | 1 | -8/+7 | |
|\ \ \ \ \ | |/ / / / |/| | | | | ENH: Allow bincount(..., minlength=0). | |||||
| * | | | | ENH: Allow bincount(..., minlength=0). | Antony Lee | 2017-03-24 | 1 | -8/+7 | |
| | | | | | ||||||
* | | | | | MAINT: Replace unicode() with u prefix | Eric Wieser | 2017-03-25 | 2 | -5/+2 | |
| | | | | | ||||||
* | | | | | MAINT: Stop using sixu instead of a u prefix | Eric Wieser | 2017-03-25 | 1 | -2/+1 | |
| | | | | | ||||||
* | | | | | MAINT: Remove asbytes_nested where b prefixes would suffice | Eric Wieser | 2017-03-25 | 3 | -35/+33 | |
| | | | | | ||||||
* | | | | | MAINT: Remove asbytes where a b prefix would suffice | Eric Wieser | 2017-03-25 | 6 | -71/+70 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we only need to support python 2, we can remove any case where we just pass a single string literal and use the b prefix instead. What we can't do is transform asbytes("tests %d" % num), because %-formatting fails on bytes in python 3.x < 3.5. | |||||
* | | | | | Merge pull request #8813 from eric-wieser/maint-flatten-dtype | Charles Harris | 2017-03-23 | 2 | -5/+7 | |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: tidy up some of npyio | |||||
| * | | | | | MAINT: Rename function to prevent name-shadowing | Eric Wieser | 2017-03-23 | 1 | -3/+4 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This file had two functions called flatten_dtype, which did similar but different things. | |||||
| * | | | | | DOC: There's a name for {False, True}, and it's "bool" | Eric Wieser | 2017-03-23 | 1 | -2/+3 | |
| | | | | | |