summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* MAINT, DOC: Fix typos (#10958)Nicholas Nadeau, P.Eng., AVS2018-04-232-2/+2
| | | | | | | | | | | | * fixed doc typo * fixed lib typos * fixed lapack_lite typos * Revert "fixed lapack_lite typos" This reverts commit e7dada860cb73af190234402508ab79965ecd079.
* Merge pull request #10891 from eric-wieser/assert-no-cyclesCharles Harris2018-04-211-11/+2
|\ | | | | TST: Extract a helper function to test for reference cycles
| * TST: Extract a helper function to test for reference cyclesEric Wieser2018-04-121-11/+2
| | | | | | | | | | | | This also means we can now test that our test is actually able to detect the type of failure we expect Trying to give myself some tools to debug the failure at https://github.com/numpy/numpy/pull/10882/files#r180813166
* | Merge pull request #9998 from mattip/nditer-as-context-managerAllan Haldane2018-04-211-2/+5
|\ \ | | | | | | ENH: Nditer as context manager
| * | ENH: add NpyIter_Close, nditer__{enter,exit}__mattip2018-04-201-2/+5
| | |
* | | Merge pull request #10921 from mattip/percentile-graphCharles Harris2018-04-204-29/+34
|\ \ \ | | | | | | | | DOC: clear up warnings, fix matplotlib plot
| * | | DOC: clear up warnings, fix matplotlib plotmattip2018-04-174-29/+34
| | | |
* | | | DOC: Fix NumpyVersion example (closes gh-10935)Stefan van der Walt2018-04-191-1/+1
| |/ / |/| |
* | | ENH: Extend np.flip to work over multiple axesJunjie Bai2018-04-172-16/+70
|/ / | | | | | | Closes #10847
* | BUG: fix crash in numpy.genfromtxt(..., names=True, comments=None) (#10822)Raunak Shah2018-04-162-3/+11
| | | | | | | | Fixes gh-10780
* | Merge pull request #10875 from mattip/fix-issue7895Charles Harris2018-04-152-2/+43
|\ \ | | | | | | BUG: fix savetxt, loadtxt for '+-' in complex
| * | BUG: fix savetxt, loadtxt for '+-' in complexmattip2018-04-102-2/+43
| | |
* | | TST: reactivate module docstring tests, fix float formattingmattip2018-04-151-18/+18
| |/ |/|
* | ENH: Improve histogram bins="auto" for data with little variance (#10739)Varun Nayyar2018-04-092-9/+40
|/ | | Now falls back on sturges estimator when the IQR is zero
* Merge pull request #10859 from charris/remove-yield-testsCharles Harris2018-04-092-93/+100
|\ | | | | MAINT: Remove yield tests
| * STY: Some PEP8 fixes in lib/tests/test_twodim_base.py.Charles Harris2018-04-081-16/+17
| |
| * TST: Remove yield tests in lib/tests/test_twodim_base.py.Charles Harris2018-04-081-12/+12
| |
| * TST: Remove yield tests from lib/tests/test_index_tricks.py.Charles Harris2018-04-081-65/+71
| |
* | 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-0724-151/+41
|\ \ | | | | | | MAINT: Post pytest switch cleanup
| * | MAINT: Remove all uses of run_module_suite.Charles Harris2018-04-0624-151/+41
| | | | | | | | | | | | | | | 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-067-43/+47
|\ \ | | | | | | TST: Switch to pytest
| * | TST: Update modules `test` to PytestTester.Charles Harris2018-04-041-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Numpy can now be tested using the standard `python -c"import numpy; numpy.test()"` construct.
| * | TST: Switch to using pytest markersCharles Harris2018-04-046-41/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | doc: fix examples in docstring for np.flipBerend Kapelle2018-04-031-3/+0
|/ /
* | MAINT: Remove "bench" from testing modules `__init__`s.Charles Harris2018-03-311-1/+0
|/ | | | | The "bench" testing with the old bench files is no longer supported. These days we use `runtests.py` and `asv`.
* TST: Rename some compiled c test modulesCharles Harris2018-03-241-1/+1
| | | | | | The renamed C modules provide low level functions for testing. The rename marks them as private functions and makes them invisible to pytest by default.
* MAINT: Remove use of unittest in NumPy tests.xoviat2018-03-211-2/+2
| | | | | | | | | | | | | | | | This removes a few left over uses of unittest. The main changes apart from removal of Test case are: * `setUp` replaced by nose and pytest compatible `setup` * `tearDown` replaced by nose and pytest compatible `teardown` * `assertRaises` replaced by `assert_raises` * `assertEqual` replaced by `assert_equal` The last two are in `numpy/testings/tests/test_utils.py`, so may seem a but circular, but at least are limited to those two functions. The use of `setup` and `teardown`, can be fixed up with the pytest equivalents after we have switched to pytest.
* Merge pull request #10755 from eric-wieser/reduce-histogram-docsCharles Harris2018-03-161-108/+76
|\ | | | | DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`
| * MAINT: The histogram_bin_edges function needs a raw docstring.Charles Harris2018-03-161-1/+1
| |
| * DOC: Move bin estimator documentation from `histogram` to `histogram_bin_edges`Eric Wieser2018-03-161-107/+75
| |
* | Merge pull request #10666 from dfreese/fix/covcomplexCharles Harris2018-03-162-2/+4
|\ \ | |/ |/| BUG: fix complex casting error in cov with aweights
| * BUG: fix complex casting error in cov with aweightsDavid Freese2018-02-252-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | When using cov with a complex input and with aweights specified, cov will error as a result of trying to cast a complex value into a float64. This comes about since average is used to calculate the sum of the weights from aweights. average returns the sum of weights as the same type as its result, not the weights type. For a complex input m, and any type for aweights, this would result in a complex value for fact. It appears the primary purpose of np.float64(fact) is to provide a NaN value from the divide when fact is an integer zero. This has been replaced by using numpy.divide to replicate the same behavior, but to also handle complex types.
* | ENH: Add np.histogram_bin_edges (#10591)Kirit Thadaka2018-03-152-3/+141
| | | | | | | | | | Fixes #10183 Documentation is copied from np.histogram