summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DOC: improve docs for PyUFunc_FromFuncAndData.mattip2018-05-281-4/+10
|
* Merge pull request #9686 from eric-wieser/force-tupleCharles Harris2018-05-274-8/+49
|\ | | | | DEP: Deprecate non-tuple nd-indices
| * Merge branch 'master' into force-tupleEric Wieser2018-05-25369-10679/+15747
| |\
| * | DEP: Deprecate non-tuple multidimensional indicesSebastian Berg2018-05-254-8/+48
| | | | | | | | | | | | | | | | | | Currently, arr[[None, 0]] and arr[(None, 0)] mean the same thing, yet arr[[0, 0]] and arr[(0, 0)] mean different things. This makes it super hard to make a subclass or duck array that behaves consistently with ndarray. By deprecating this feature, we force downstream library code to stop using it, which in turn makes that library code use approaches that are easier to implement in subclasses and duck types.
* | | Merge pull request #11145 from mattip/nep-tweakCharles Harris2018-05-272-1/+14
|\ \ \ | | | | | | | | DOC: cleanup NEP creation
| * | | setting version confuses circlecimattip2018-05-241-2/+1
| | | |
| * | | DOC: cleanup NEP creationmattip2018-05-243-2/+16
| | | |
* | | | Merge pull request #11169 from pv/import-sanitycheckCharles Harris2018-05-271-0/+25
|\ \ \ \ | | | | | | | | | | MAINT: add sanity-checks to be run at import time
| * | | | MAINT: add sanity-checks to be run at import timePauli Virtanen2018-05-271-0/+25
|/ / / / | | | | | | | | | | | | This checks for potential BLAS issues, which are useful to catch early.
* | | | Merge pull request #11168 from pv/sdot-regrcheckCharles Harris2018-05-271-0/+36
|\ \ \ \ | | | | | | | | | | TST: linalg: add regression test for gh-8577
| * | | | TST: linalg: add regression test for gh-8577Pauli Virtanen2018-05-271-0/+36
|/ / / / | | | | | | | | | | | | | | | | Add regression test that checks for certain bugs where results from sdot change if certain libraries are imported first.
* | | | Merge pull request #11120 from eric-wieser/simplify-ma-ctorMarten van Kerkwijk2018-05-261-11/+4
|\ \ \ \ | | | | | | | | | | MAINT: remove redundant code in MaskedArray.__new__
| * | | | STY: Add blank lineEric Wieser2018-05-261-0/+1
| | | | |
| * | | | MAINT: remove redundant code in MaskedArray.__new__Eric Wieser2018-05-181-11/+3
| | | | |
* | | | | Merge pull request #11097 from shoyer/timedelta-unitsEric Wieser2018-05-262-2/+23
|\ \ \ \ \ | |_|_|_|/ |/| | | | BUG: fix datetime.timedelta->timedelta64 unit detection logic
| * | | | TST: Add extra regression tests for gh-11096Eric Wieser2018-05-241-0/+6
| | | | | | | | | | | | | | | Conversion from timedelta was only reliably broken for integer numbers of weeks (including 0)
| * | | | TST: test for timedelta coersionStephan Hoyer2018-05-241-1/+4
| | | | |
| * | | | BUG: fix datetime.timedelta->timedelta64 unit detection logicStephan Hoyer2018-05-231-1/+4
| | | | |
| * | | | TST: regression test for gh-6452Stephan Hoyer2018-05-231-1/+10
| | | | |
* | | | | BUG: __copy__ and __deepcopy__ should preserve MaskedConstant (#11038)Kritika Jalan2018-05-253-0/+21
| | | | | | | | | | | | | | | Fixes #11021
* | | | | ENH: Modify intersect1d to return common indices (#10684)Christopher2018-05-253-9/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * added function commonpts1d * Update arraysetops.py * Update arraysetops.py * modified intersect1d to return common indices Proposed this idea in previous pull request (https://github.com/numpy/numpy/pull/10683) and made suggested changes for implementing this idea to have relevant common indices that correspond to the values in the intersection of the two arrays. * update intersect1d with suggested changes * implemented return_indices options for intersect1d I've tested out the above code and for the ~10 different test sets I've tried it's worked thus far. It's probably not the cleanest implementation but it works and is vectorized. * cleaned up structure for intersect1d * fixed copy-paste error, added second test, changed a conditional * Testing return_indices in intersect1d * formatting * created separate test function for intersect1d indices, added spaces after commas * fixed up example and some style * fixed style * style change * removed one example * removed extra space * added version number for return_indices * added 'return_indices' keyword for np.intersect1d * fixed formatting * updated return_indices entry * fixed some typos and style * added bit about first instance of a value being used * STY: Fix comment formats * DOC: missing space * DOC: correct parameter names in docstring * made suggested changes * fixed a mistake from previous update also added documentation for comm1, comm2 to match doc from np.unique * added in tests for 2d inputs * STY: Add missing spaces around commas * TST: Correct array to actually be unique * STY: Spaces at beginning of comments
* | | | | Merge pull request #11159 from mattip/skip-ctypes-issueCharles Harris2018-05-251-0/+1
|\ \ \ \ \ | | | | | | | | | | | | TST: Skip ctypes dependent test that fails on Python < 2.7.7.
| * | | | | TST: skip ctypes memoryview issue on old pythonmattip2018-05-241-0/+1
| | |_|/ / | |/| | |
* | | | | Merge pull request #11160 from mattip/windows-exceptionsEric Wieser2018-05-251-1/+0
|\ \ \ \ \ | | | | | | | | | | | | TST: windows builds now properly support floating error states
| * | | | | TST: windows builds now properly support floating error statesmattip2018-05-241-1/+0
| |/ / / /
* | | | | BUG: time is lost from datetime.datetime when converting to datetime64 (#11149)Matti Picus2018-05-242-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | datetime.datetime is a subclass of datetime.date, so it needs to be checked against first Fixes #11106
* | | | | Merge pull request #11152 from lagru/pad-benchmarksEric Wieser2018-05-241-0/+25
|\ \ \ \ \ | |/ / / / |/| | | | BENCH: Add basic benchmarks for numpy.pad
| * | | | BENCH: Add basic benchmarks for numpy.padLars G2018-05-241-0/+25
| |/ / /
* | | | TST: disable gc in refcount test (#11158)Matti Picus2018-05-241-5/+9
|/ / / | | | | | | | | | | | | | | | | | | The vectorize version of this test was failing consistently on several of the Appveyor builds, ever since a recent pytest upgrade. Our theory is that by random chance, things changed so that during the call to vectorize(op).__call__, python started running a garbage collection, which perturbed the refcounts that this test is checking. (Specifically this test is doing a weird thing and checking that the refcount of the object 1 doesn't decrease, and it's very plausible that some random bit of garbage was holding a reference to this object.) Disabling the gc during the test makes this kind of refcount assertion more reliable, and seems to have fixed the appveyor builds, so I guess it's good.
* | | Merge pull request #11134 from bashtage/doc-tofileCharles Harris2018-05-231-0/+5
|\ \ \ | | | | | | | | DOC: Clarify tofile requirements
| * | | DOC: Clarify tofile requirementKevin Sheppard2018-05-221-0/+5
| | | | | | | | | | | | | | | | | | | | Clarify that tofile requires a file that can be directly written to and not a general file-like object
* | | | Merge pull request #11141 from eric-wieser/refactor-padCharles Harris2018-05-231-26/+25
|\ \ \ \ | | | | | | | | | | MAINT: Extract a helper function for prepending and appending
| * | | | MAINT: Extract a helper function for prepending and appendingEric Wieser2018-05-221-26/+25
| | | | | | | | | | | | | | | | | | | | This makes it a little easier to tell the difference between the prepend and append functions
* | | | | Merge pull request #11139 from mattip/warnings-as-errorsCharles Harris2018-05-231-3/+9
|\ \ \ \ \ | | | | | | | | | | | | TST: turn some build warnings into errors
| * | | | | TST: turn some build warnings into errorsmattip2018-05-221-3/+9
| | |/ / / | |/| | |
* | | | | Merge pull request #11012 from eric-wieser/pad-slice-helpersMarten van Kerkwijk2018-05-221-60/+43
|\ \ \ \ \ | | |/ / / | |/| | | MAINT: np.pad: Add helper functions for producing slices along axes
| * | | | MAINT: np.pad: Generalize the helper function to be used in more placesEric Wieser2018-05-221-12/+15
| | | | | | | | | | | | | | | | | | | | This makes `_slice_first` almost a factor of two faster
| * | | | MAINT: np.pad: Add helper functions for producing slices along axesEric Wieser2018-05-221-52/+32
| | |/ / | |/| |
* | | | Merge pull request #11137 from mhvk/matrix-remaining-ma-testsCharles Harris2018-05-222-16/+21
|\ \ \ \ | |_|/ / |/| | | MAINT: move remaining MaskedArray matrix tests to matrixlib.
| * | | MAINT: move remaining MaskedArray matrix tests to matrixlib.Marten van Kerkwijk2018-05-222-16/+21
|/ / /
* | | Merge pull request #11124 from mhvk/assert-fully-masked-arrayCharles Harris2018-05-212-1/+23
|\ \ \ | |/ / |/| | BUG: Ensure that fully masked arrays pass assert_array_equal.
| * | BUG: Ensure that fully masked arrays pass assert_array_equal.Marten van Kerkwijk2018-05-192-1/+23
|/ / | | | | | | | | The underlying problem is that ma.all() evaluates to masked, which is falsy, and thus triggers test failures.
* | Merge pull request #11098 from mhvk/gufunc-keepdimsMarten van Kerkwijk2018-05-184-41/+225
|\ \ | | | | | | ENH: Add keepdims argument for generalized ufuncs.
| * | DOC: Describe new keepdims arguments (and axes).Marten van Kerkwijk2018-05-182-2/+39
| | | | | | | | | | | | | | | | | | Both in the general documentation and in the release notes. For the latter, also include a description of ``axes``, which was missing so far.
| * | ENH: Add keepdims argument for generalized ufuncs.Marten van Kerkwijk2018-05-182-39/+186
| | | | | | | | | | | | | | | The argument can only be used if all inputs share the same number of core dimension, and no output has any core dimensions.
* | | BUG: Fix typo in variable name (#11116)zuko3d2018-05-181-1/+1
|/ / | | | | | | | | Typo fix in variable name in core/numeric/binary_repr/warn_if_insufficient. This only worked before because it used binwidth from the outer namespace.
* | Merge pull request #11026 from mattip/cleanup-frompyfuncEric Wieser2018-05-182-58/+35
|\ \ | | | | | | MAINT: reduce code duplication in ufunc_frompyfunc
| * | MAINT: reduce code duplication in ufunc_frompyfuncmattip2018-05-172-58/+35
| | |
* | | Merge pull request #11111 from juliantaylor/avx-fixCharles Harris2018-05-171-1/+1
|\ \ \ | |/ / |/| | BUG: fix case of ISA selector in ufunc selection
| * | BUG: fix case of ISA selector in ufunc selectionJulian Taylor2018-05-171-1/+1
|/ / | | | | | | | | The function expects lowercase so we accidentally turned of avx support completely.