summaryrefslogtreecommitdiff
path: root/numpy/lib
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix some typos in a code string and commentsDongjoon Hyun2016-01-271-2/+2
|
* TST: Added lots of new tests for fromnumeric.pygfyoung2016-01-181-32/+29
|
* Merge pull request #5981 from dfreese/fix/multi_percent_nanperc_bugJulian Taylor2016-01-172-3/+34
|\ | | | | BUG: Handle multiple percentiles for all-nan slices in nanpercentile
| * BUG: Fix nanpercentile crash on all-nan slicesDavid Freese2016-01-122-3/+34
| | | | | | | | | | | | | | | | Fix bug where nanpercentile would crash with an all-nan slices when given multiple percentiles. Also corrects behavior where array sizes different from numpy.percentile would be returned with keepdims enabled. Fix #5760
* | Merge pull request #7020 from jakirkham/deprecated_masked_array_mask_copyCharles Harris2016-01-151-0/+1
|\ \ | | | | | | DEP: Warn MaskedArray will return views of mask when sliced
| * | TEST: Ignore `FutureWarning` if raised from running masked array operations.John Kirkham2016-01-151-0/+1
| |/
* | DOC, MAINT: Enforce np.ndarray arg for np.put and np.placegfyoung2016-01-143-5/+9
|/ | | | | | | np.put and np.place do something only when the first argument is an instance of np.ndarray. These changes will cause a TypeError to be thrown in either function should that requirement not be satisfied.
* DOC: Update trapz docstring.Charles Harris2016-01-091-3/+5
| | | | [ci skip]
* DOC: fix typos in trapz()François Boulogne2016-01-091-1/+1
| | | | [ci skip]
* Merge pull request #6905 from kohr-h/issue-6899__broadcast_with_one_argJaime2016-01-061-3/+0
|\ | | | | ENH: allow single input argument in numpy.broadcast
| * ENH: allow single input argument in numpy.broadcastHolger Kohr2016-01-041-3/+0
| |
* | DOC,BUG: Fix some latex generation problems.Charles Harris2016-01-051-0/+17
|/ | | | | | | | | | | | Some of the documentation for newbyteorder, copy and pasted in several spots, had paragraphs ending in `::`, initiating a sphinx generated Verbatim environment and resulting in "LaTeX Error: Too deeply nested". The user_array.container class needed non-empty class documentation. That that caused a problem is probably a numpydoc bug, but it is easy to fix. [skip ci]
* Merge pull request #6886 from charris/use-temppathCharles Harris2016-01-021-55/+31
|\ | | | | MAINT: Simplify some tests using temppath context manager.
| * MAINT: Simplify some tests using temppath context manager.Charles Harris2015-12-261-55/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This replaces code of the pattern ``` fd, name = tempfile.mkstemp(...) os.close(fd) try: do stuff with name finally: os.remove(name) ``` with ``` with temppath() as name: do stuff with name ``` A few more complicated cases are also handled. The remains some particularly gnarly code the could probably be refactored to use temppath, but that is a more demanding project.
* | [TST] Refactor new raise_warnings logic for subpackage test suitesNathaniel J. Smith2015-12-301-3/+3
|/
* DOC: Fix poly_val description for 'x' inputgfyoung2015-12-221-4/+4
| | | | Closes gh-6849.
* Merge pull request #6866 from charris/tempfile-context-managerCharles Harris2015-12-201-21/+12
|\ | | | | ENH: Tempfile context manager
| * MAINT: Use temppath in test_not_closing_opened_fid.Charles Harris2015-12-201-21/+12
| | | | | | | | | | The test is in numpy/lib/tests/test_io.py. This commit is intended as a demonstration of using temppath.
* | DOC: Use print only as function when print_function is imported from __future__gfyoung2015-12-198-21/+21
|/ | | | Closes gh-6863.
* DOC, MAINT: Fix the numpy.ma.cov signature and documentation.jason king2015-12-181-6/+7
| | | | The rowvar and bias parameters are booleans, not integers.
* DEP: Stricter arg checking for array orderinggfyoung2015-12-181-4/+6
| | | | | | | | | | | | | The bug traces to the PyArray_OrderConverter method in conversion_utils.c, where no errors are thrown if the ORDER parameter passed in is not of the string data-type or has a string value of length greater than one. This commit causes a DeprecationWarning to be raised, which will later be turned into a TypeError or another type of error in a future release. Closes gh-6598.
* Updated typos in histogram bin estimator equationsMad Physicist2015-12-111-2/+2
| | | In all cases, it's either ...*n^(-1/3) or .../n^(1/3), not both. The actual functions are implemented correctly.
* Merge pull request #6808 from charris/fix-assert-in-testsJaime2015-12-111-3/+3
|\ | | | | MAINT: Replace assert with assert_(...) in some tests.
| * MAINT: Replace assert with assert_(...) in some tests.Charles Harris2015-12-101-3/+3
| |
* | [TST] fix test_dtype_error to actually test what it's supposed toNathaniel J. Smith2015-12-081-3/+3
|/ | | | | Discovered while cleaning up uses of the silly aliases like 'np.object'.
* Merge pull request #6775 from charris/add-future-importsCharles Harris2015-12-071-1/+2
|\ | | | | MAINT: Include from __future__ boilerplate in some files missing it.
| * MAINT: Include from __future__ boilerplate in some files missing it.Charles Harris2015-12-051-1/+2
| | | | | | | | | | Some newer *.py files are missing the `from __future__` boilerplate that helps assure Python2 and Python3 compatibility.
* | BUG: Quick and dirty fix for interp.Charles Harris2015-12-071-4/+36
|/ | | | | | | | | | | The original had incorrect comparisons involving <=, <, and also failed when the number of data points was 2. This fixes the use of the comparisons and uses linear search for fewer than 5 data points. The whole routine needs a simplified rewrite, but this takes care of the bug. Closes #6468.
* Merge pull request #6627 from ordirules/masterCharles Harris2015-11-251-0/+10
|\ | | | | added extra line in the tile help doc to outline a general repeat, co…
| * added more textJulien Lhermitte2015-11-051-0/+4
| |
| * added extra line in the tile help doc to outline a general repeat, commonly usedJulien Lhermitte2015-11-041-0/+6
| |
* | Merge pull request #6690 from lzkelley/hist_check_range_finiteJaime2015-11-172-3/+27
|\ \ | | | | | | BUG, MAINT: check that histogram range parameters are finite.
| * | BUG, MAINT: check that histogram range parameters are finite, add tests to ↵lzkelley2015-11-172-3/+27
| | | | | | | | | | | | assure this. Improved some error-types.
* | | ENH: testing: add SkipTest and KnownFailureExceptionEvgeni Burovski2015-11-162-7/+4
|/ / | | | | | | | | | | | | | | * use SkipTest in numpy tests instead of importing it from nose * add a KnownFailureException as an alias for KnownFailureTest (the former is preferred, but the latter is kept for backcompat) * rename the KnownFailure nose plugin into KnownFailurePlugin, and keep the old name for backcompat
* | add clarification of weights to documentationGriffin Hosseinzadeh2015-11-131-1/+2
| |
* | Merge pull request #6649 from sieben/dict_litteralJaime2015-11-071-2/+1
|\ \ | |/ |/| MAINT: Dictionary litteral
| * MAINT: Dictionary litteralRémy Léone2015-11-071-2/+1
| |
* | DEP: Remove FutureWarning from np.lib.split and go to future.Charles Harris2015-10-302-28/+13
|/ | | | | | | | | | | | | | | Previously an empty array resulting from split always had dimension 1-D. In Numpy 1.9 a FutureWarning was raised to notify users that it was planned to preserve the dimensions of empty arrays in a future numpy release. This removes the FutureWarning and implements preservation of dimensions. Note that there was a bug in numpy 1.9 and the dimensions of empty arrays was already preserved in some cases and no warning was issued. This PR fixes that inconsistency by preserving the dimensions in all cases rather than fixing the bug, as the dimension preserving behavior was already depended on by some users. See the discussion in gh-6575 about this change.
* TST: attempt to make test_load_refcount deterministicNathaniel J. Smith2015-10-281-6/+11
| | | | | | Use a different strategy to detect whether np.load creates cycles. Fixes gh-6571, I hope.
* Merge pull request #6562 from ahaldane/disable_view_safety_checksCharles Harris2015-10-261-10/+0
|\ | | | | Disable view safety checks
| * TST: Remove tests of view safety checks (see next commit)Allan Haldane2015-10-261-10/+0
| | | | | | | | | | Remove unit tests for the view safety chekcs, which are to be reverted in the next commit.
* | BUG: error in broadcast_arrays with as_strided arrayStephan Hoyer2015-10-242-3/+14
|/ | | | Fixes GH6491
* BUG: Make median work for empty arrays (issue #6462)Ethan Kruse2015-10-212-1/+29
| | | | | np.median([]) returns NaN. Fixes bug/regression that raised an IndexError. Added tests to ensure continued support of empty arrays.
* DOC: add lib.Arrayterator to reference guide. Closes gh-6404.Ralf Gommers2015-10-113-5/+10
|
* Merge pull request #6421 from charris/forwardport-gh-6417Charles Harris2015-10-071-1/+1
|\ | | | | DOC: fix var. reference in percentile docstring
| * DOC: fix var. reference in percentile docstringTobias Megies2015-10-071-1/+1
| | | | | | | | | | | | | | The argument for the original input array is named `a` but in the docstring it was at some point referred to as `arr`. [skip ci]
* | Merge pull request #6406 from charris/update-gh-6310Charles Harris2015-10-061-6/+7
|\ \ | |/ |/| DOC: Update gh-6310: Update docs for numpy.genfromtxt.
| * DOC: Cleanup genfromtxt documentation a bit.Charles Harris2015-10-041-8/+7
| |
| * DOC: Update docs for numpy.genfromtxt.jason king2015-10-041-3/+5
| | | | | | | | | | | | | | Note that a list of strings can be passed as the first parameter. The strings are treated as the lines in a file. Closes #6247
* | TST: new np.corrcoef improved stabilityLars Buitinck2015-10-051-0/+6
| |