summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | TST: Remove yield tests from lib/tests/test_index_tricks.py.Charles Harris2018-04-081-65/+71
| | | | |
| * | | | TST: Replace yield tests in polynomial/tests/test_classes.Charles Harris2018-04-081-65/+49
| | |/ / | |/| |
* | | | Merge pull request #10850 from charris/deprecate-some-importsCharles Harris2018-04-095-9/+39
|\ \ \ \ | | | | | | | | | | DEP: Issue deprecation warnings for some imports.
| * | | | DEP: Issue deprecation warnings for some imports.Charles Harris2018-04-065-9/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following modules have been moved or renamed and should not be imported. This adds shim modules for the old names that issue a DeprecationWarning on import. * numpy/core/umath_tests.py * numpy/testing/decorators.py * numpy/testing/noseclasses.py * numpy/testing/nosetester.py * numpy/testing/utils.py Closes #10845.
* | | | | Merge pull request #10863 from eric-wieser/histogramdd-fixesCharles Harris2018-04-091-33/+22
|\ \ \ \ \ | |_|/ / / |/| | | | MAINT: More Histogramdd cleanup
| * | | | MAINT: Don't use np.arange just because `range` is shadowedEric Wieser2018-04-081-7/+11
| | | | | | | | | | | | | | | | | | | | Creates an alias instead
| * | | | MAINT: Use the minlength argument of bincount to avoid a copy into a larger ↵Eric Wieser2018-04-081-8/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | array The result is left as a float, even though it no longer needs to be, as this commit aims not to change behavior.
| * | | | MAINT: Don't reimplement `ravel_multi_index`Eric Wieser2018-04-081-3/+2
| | | | |
| * | | | MAINT: Don't use a dict with numeric keys when a tuple would do fineEric Wieser2018-04-081-3/+4
| | | | |
| * | | | MAINT: Remove asarray call on a known arrayEric Wieser2018-04-081-2/+0
| | | | |
| * | | | MAINT: Remove dead code.Eric Wieser2018-04-081-3/+0
| | | | | | | | | | | | | | | | | | | | len(xy) == N, and we already checked if N == 0 above.
| * | | | MAINT: Remove pointless axis permutationEric Wieser2018-04-081-9/+3
| | | | |
| * | | | MAINT: Remove redundant operations in 1d maskingEric Wieser2018-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | `x1d[nonzero(mask1d)[0]]` is just a less readable way to spell `x1d[mask1d]`
* | | | | Merge pull request #10858 from charris/post-pytest-cleanupCharles Harris2018-04-07129-4169/+194
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Post pytest switch cleanup
| * | | | | MAINT: Remove now unused pytest_tools.Charles Harris2018-04-066-3465/+0
| | | | | |
| * | | | | MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-06123-704/+194
| | |/ / / | |/| | | | | | | | | | | | | | | | | | That function is nose specific and has not worked since `__init__` files were added to the tests directories.
* | | | | Merge pull request #10802 from eric-wieser/histogramdd-fixesCharles Harris2018-04-061-44/+41
|\ \ \ \ \ | |/ / / / |/| / / / | |/ / / BUG/DOC/MAINT: Tidy up histogramdd
| * | | BUG: Use intp for indicesEric Wieser2018-04-061-1/+1
| | | | | | | | | | | | | | | | Fixes gh-8531
| * | | DOC: Document the surprising behaviour of np.histogramdd on array_likesEric Wieser2018-04-061-4/+12
| | | |
| * | | MAINT/ENH: Reuse range computation code from np.histogram in np.histogramddEric Wieser2018-04-061-29/+15
| | | | | | | | | | | | | | | | This also adds support for inferring the range along a subset of the axes, rather than an all or nothing approach.
| * | | MAINT: Give a more useful error messages for bins of an incorrect dimensionEric Wieser2018-03-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | Previously gave `ValueError: object too deep for desired array` from an internal call This also adds support for 0d array bincounts
| * | | MAINT: Only check bin monotonicity if not using linspaceEric Wieser2018-03-261-5/+6
| | | | | | | | | | | | | | | | | | | | This also switches to doing comparisons rather than subtractions, for consistency with np.histogram. That change is not strictly necessary here as the arguments are not unsigned integer types (unlike in np.histogram), but it would nice to support integer bins in future.
| * | | MAINT: Unify computation of `nbin[i]`Eric Wieser2018-03-261-3/+2
| | | |
| * | | MAINT: Make np.histogramdd error messages consistent with np.histogramEric Wieser2018-03-261-4/+4
| |/ /
* | | Merge pull request #10842 from charris/switch-to-pytestCharles Harris2018-04-0669-504/+609
|\ \ \ | | | | | | | | TST: Switch to pytest
| * | | TST: Update modules `test` to PytestTester.Charles Harris2018-04-0412-35/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
| * | | TST: Switch to using pytest markersCharles Harris2018-04-0456-458/+535
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use standard pytest markers everywhere in the numpy tests. At this point there should be no nose dependency. However, nose is required to test the legacy decorators if so desired. At this point, numpy test cannot be run in the way with runtests, rather installed numpy can be tested with `pytest --pyargs numpy` as long as that is not run from the repo. Run it from the tools directory or some such.
| * | | TST: Update pytest.ini and PytestTesterCharles Harris2018-04-041-11/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Make PytestTester callable. * Rename 'timer' to 'durations', corresponding with pytest. * Offset 'verbose', no entry is now '-q'. * Move some `ignore` warnings into PytestTester so that they affect releases, not just develop.
* | | | Merge pull request #10670 from eric-wieser/deprecate-sum-generatorCharles Harris2018-04-062-0/+12
|\ \ \ \ | | | | | | | | | | DEP: Deprecate np.sum(generator)
| * | | | DEP: Deprecate np.sum(generator)Eric Wieser2018-02-262-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10652 Introduced in a13aad3ac33b629f3e696b4d4d5dbf4b5605d567
* | | | | Merge pull request #10826 from tylerjereddy/issue_10779_squeezeCharles Harris2018-04-062-6/+64
|\ \ \ \ \ | | | | | | | | | | | | BUG: np.squeeze() now respects older API axis expectation
| * | | | | BUG: np.squeeze() now respects older API axis expectationTyler Reddy2018-03-302-6/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes Issue #10779 by removing the interception of an otherwise normal Exception when an object implemented with the expectation that squeeze() does not accept an axis argument receives an axis argument * Added unit tests that enforce respect for the old API expectation in objects, and ensure that silent success (or forced usage of the new API on objects) is no longer the case * Updated compatibility notes to explain this change
* | | | | | Merge pull request #10763 from ahaldane/fix_float_repr_tp_print_overrideCharles Harris2018-04-052-0/+54
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: floating types should override tp_print
| * | | | | | BUG: floating types should override tp_printAllan Haldane2018-03-192-0/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10753
* | | | | | | Merge pull request #10800 from eric-wieser/unify-ufunc-docsCharles Harris2018-04-051-110/+168
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Add remarks about array vs scalar output to every ufunc
| * | | | | | | DOC: Add remarks about array vs scalar output to every ufuncEric Wieser2018-03-251-110/+168
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | Some ufuncs already mentioned this, but it seems sensible for all of them to describe it in exactly the same way.
* | | | | | | Merge pull request #10814 from juliantaylor/improve-cpuidCharles Harris2018-04-056-18/+69
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: verify the OS supports avx instruction
| * | | | | | | BUG: verify the OS supports avx instructionJulian Taylor2018-03-296-18/+69
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some systems you can disable avx registers but the gcc builtin does only checks if the cpu has the feature. Before using avx functions check the OS support with xgetbv. Closes gh-10787 Closes gh-9534
* | | | | | | doc: fix examples in docstring for np.flipBerend Kapelle2018-04-031-3/+0
| |_|_|_|/ / |/| | | | |
* | | | | | Merge pull request #10827 from charris/create-pytesttesterCharles Harris2018-04-0111-10/+175
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: Add tester for pytest.
| * | | | | | ENH: Add tester for pytest.Charles Harris2018-03-311-0/+175
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip] This is not used yet, but has been tested with temporary changes and works.
| * | | | | | MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-3110-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* | | | | | | MAINT: Fix hard tab.Charles Harris2018-04-011-1/+1
| | | | | | |
* | | | | | | ENH: Add support for the 64-bit RISC-V architectureDavid Abdurachmanov2018-04-012-1/+5
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RISC-V (pronounced "RISC Five") is an open source instruction set architecture (ISA). The 64-bit version may run the Linux kernel and the usual stack of applications on top of it, including Python. This patch adds support for riscv64 to Numpy. With it the full testsuite passes for both Python 2.7 and 3.6, with the only exception of test_float (test_numeric.TestBoolCmp). See #8213 for details. Closes: #8213
* | | | | | Merge pull request #10832 from orestisf1993/issue-10810Stephan Hoyer2018-03-312-1/+8
|\ \ \ \ \ \ | | | | | | | | | | | | | | ENH: datetime64: support AC dates starting with '+'
| * | | | | | ENH: datetime64: support AC dates starting with '+'Orestis Floros2018-03-312-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Numpy allows negatives signs but throws a value error when parsing datetime strings starting with '+': >>> np.datetime64('+1000-01-01T00:00:00Z') ValueError: Error parsing datetime string "+1000-01-01T00:00:00Z" at position 0 Since the default is positive years, we just need to skip the '+' character. Fixes #10810.
* | | | | | | Merge pull request #10786 from lakshayg/stablesortJulian Taylor2018-03-315-9/+23
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | ENH: Add "stablesort" option to inp.sort as an alias for "mergesort".
| * | | | | | Remove NPY_STABLESORT enumLakshay Garg2018-03-295-15/+15
| | | | | | |
| * | | | | | add test for stable sortLakshay Garg2018-03-251-0/+6
| | | | | | |
| * | | | | | add stablesort in np.sort and point to mergesortLakshay Garg2018-03-237-10/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #10784