summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | TST: Add failing test for mismatch of key typeEric Wieser2017-07-011-1/+16
| | | | | | |
| * | | | | | BUG: stack_arrays fails for subdtypesEric Wieser2017-07-012-5/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Again, fixed by not using descr
| * | | | | | BUG: recfunctions.join_by fails when key is a subdtypeEric Wieser2017-07-012-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that working with .descr is a generally terrible idea. Instead we introduce `get_fieldspec`, which returns a list of 2-tuples, encapsulating subdtypes. This also means that np.core.test_rational.rational survives a roundtrip - its .descr is 'V8', which ddoesn't survive
| * | | | | | BUG: recfunctions.join_by fails for colliding values with different dtypesEric Wieser2017-07-012-11/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #9338
| * | | | | | MAINT: use set operators for brevityEric Wieser2017-07-011-3/+3
| |/ / / / /
* | | | | | DOC: Improve documentation of common_type (#9344)Gunjan2017-07-011-2/+2
|/ / / / / | | | | | | | | | | Fixes gh-9326
* | | | | TST: Verify that join_by doesn't choke on subdtypesEric Wieser2017-06-271-0/+10
| | | | |
* | | | | MAINT: Fix alerts from http://lgtm.com (#9292)Jean Helie2017-06-261-1/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | * make exception raising 2/3 compatible * remove unnecesary else statement after while loop without break clause * ensure file is always enclosed even in the event of an exception * ensure list comprehension variable does not override enclosing loop variable
* | | | Merge pull request #9220 from eric-wieser/simplify-nanfuncsCharles Harris2017-06-221-43/+53
|\ \ \ \ | | | | | | | | | | MAINT: Factor out code duplicated by nanmedian and nanpercentile
| * | | | MAINT: Factor out code duplicated by nanmedian and nanpercentileEric Wieser2017-06-211-43/+53
| | | | |
* | | | | MAINT: Use neq instead of xor in diffEgor Panfilov2017-06-171-1/+1
| | | | |
* | | | | BUG: Switched to xor for bool arrays in diff, added corresponding testsEgor Panfilov2017-06-172-6/+20
| | | | |
* | | | | DOC: BLD: fix lots of Sphinx warnings/errors.Ralf Gommers2017-06-102-2/+2
|/ / / /
* | | | Merge pull request #9214 from eric-wieser/no-one-arg-whereCharles Harris2017-06-033-6/+7
|\ \ \ \ | | | | | | | | | | MAINT: Don't internally use the one-argument where
| * | | | MAINT: Don't internally use the one-argument whereEric Wieser2017-06-033-6/+7
| | | | | | | | | | | | | | | | | | | | nonzero is a clearer spelling
* | | | | BUG: KeyboardInterrupt is swallowed all over the placeEric Wieser2017-06-037-10/+10
|/ / / / | | | | | | | | | | | | Bare except is very rarely the right thing
* | | | Merge pull request #9212 from eric-wieser/tidy-function_baseJulian Taylor2017-06-032-9/+4
|\ \ \ \ | | | | | | | | | | MAINT: Combine similar branches
| * | | | MAINT: Combine similar branchesEric Wieser2017-06-032-9/+4
| | | | |
* | | | | MAINT: Use np.concatenate instead of np.vstack (#8934)Joseph Paul Cohen2017-06-021-12/+4
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The np.vstack function is maintained for backward compatibility, it's use in new code is discouraged. * MAINT: Replace internal uses of vstack vstack is supported only for backward compatibility We should use concatenate or stack instead * MAINT: Remove 1d special casing in piecewise * STY: Fix missing blank line in ma.tests.test_extras.py
* | | | BUG: have as_strided() keep custom dtypesAntoine Pitrou2017-05-242-4/+11
| | | | | | | | | | | | | | | | Fixes issue #9161
* | | | BUG: set default type for empty index array to `numpy.intp` (#9142)Konrad Kapp2017-05-202-2/+12
| | | | | | | | | | | | | | | | Fixes #9137
* | | | DEP: Deprecate incorrect behavior of expand_dims.Charles Harris2017-05-172-4/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expand_dims works as documented when the index of the inserted NewAxis in the resulting array satisfies -a.ndim - 1 <= index <= a.ndim. However, when index > a.ndim index is replaced by a.ndim and, when index < -a.ndim - 1, it is replaced by index + a.ndim + 1, which may be negative and results in incorrect placement. The latter two cases are now deprecated. Closes #9100.
* | | | DOC: link to stack from column_stackEric Wieser2017-05-131-1/+1
|/ / / | | | | | | | | | [ci skip]
* | | Merge pull request #9070 from ahaldane/silence_join_byEric Wieser2017-05-102-6/+49
|\ \ \ | | | | | | | | BUG: Preserve field order in join_by, avoids FutureWarning
| * | | BUG: Preserve field order in join_by, avoids FutureWarningAllan Haldane2017-05-092-6/+49
| | | | | | | | | | | | | | | | Fixes #8940
* | | | ENH: Spelling fixesVille Skyttä2017-05-098-9/+9
|/ / /
* | | DOC: fix docstring for np.isinStephan Hoyer2017-05-071-0/+1
| | |
* | | ENH: add divmod support to NDArrayOperatorsMixinStephan Hoyer2017-05-072-40/+60
| | |
* | | BUG: np.ma.mr_['r',...] does not return masked arraysEric Wieser2017-05-051-3/+3
| | |
* | | BUG: np.r_['r',...] crashes on scalarsEric Wieser2017-05-052-1/+6
| | |
* | | BUG: np.r_['rc'] is treated as np.r_['r'], not an errorEric Wieser2017-05-052-1/+3
| | |
* | | TST: Add some tests for passing r and c to r_Eric Wieser2017-05-051-0/+13
| | |
* | | MAINT: Use enumerate instead of range(len(...))Eric Wieser2017-05-051-15/+14
| | |
* | | BUG: Remove mutable state from AxisConcatenatorEric Wieser2017-05-052-29/+37
| | | | | | | | | | | | Fixes #8815
* | | MAINT: Remove code duplicated from np.r_ in np.ma.mr_Eric Wieser2017-05-051-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 Recht2017-05-053-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 NDArrayOperatorsMixinStephan Hoyer2017-04-302-3/+4
| | |
* | | Merge pull request #8885 from juliantaylor/tracemallocCharles Harris2017-04-301-1/+2
|\ \ \ | | | | | | | | ENH: add support for python3.6 memory tracing
| * | | ENH: add support for python3.6 memory tracingJulian Taylor2017-04-281-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-nanfuncsCharles Harris2017-04-282-15/+31
|\ \ \ \ | |/ / / |/| | | BUG: Fix np.lib.nanfunctions on object arrays
| * | | BUG: Fix incorrect behavior of nanfunctions on object arraysEric Wieser2017-04-292-8/+28
| | | | | | | | | | | | | | | | Fixes gh-8974 and gh-9008
| * | | MAINT: Remove weird create-a-copy danceEric Wieser2017-04-271-6/+2
| | | |
* | | | Merge pull request #8996 from eric-wieser/fix-ufunclikeMarten van Kerkwijk2017-04-272-27/+84
|\ \ \ \ | | | | | | | | | | BUG/DEP: Make ufunclike functions more ufunc-like
| * | | | BUG: Return scalars from ufunclike objectsEric Wieser2017-04-262-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 Wieser2017-04-262-20/+59
| | | | | | | | | | | | | | | | | | | | Fixes gh-8995
* | | | | Merge pull request #8988 from eric-wieser/document-2522Charles Harris2017-04-271-0/+17
|\ \ \ \ \ | | | | | | | | | | | | DOC: Explain the behavior of diff on unsigned types
| * | | | | DOC: Explain the behavior of diff on unsigned typesEric Wieser2017-04-251-0/+17
| |/ / / / | | | | | | | | | | | | | | | Fixes #2522
* | | | | MAINT: Set the __name__ of generated methodsEric Wieser2017-04-271-30/+37
| |/ / / |/| | | | | | | | | | | Barely useful, but means that the function name is helpful if printed.
* | | | ENH: NDArrayOperatorsMixin calls ufuncs directly, like ndarrayStephan Hoyer2017-04-272-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 Hoyer2017-04-272-12/+31
| | | |