Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DOC: Add missing np. prefix to expand_dims docs (#10109) | Hidehiro NAGAOKA | 2017-11-28 | 1 | -3/+3 |
| | |||||
* | Merge pull request #9946 from eric-wieser/improve-take-docs | Allan Haldane | 2017-11-28 | 1 | -5/+23 |
|\ | | | | | DOC: describe the expansion of take and apply_along_axis in detail | ||||
| * | DOC: describe the expansion of take and apply_along_axis in detail | Eric Wieser | 2017-11-21 | 1 | -5/+23 |
| | | | | | | | | | | | | Extracted from gh-8714 [ci-skip] | ||||
* | | Merge pull request #10054 from charris/gh-4208 | Charles Harris | 2017-11-26 | 5 | -284/+919 |
|\ \ | | | | | | | ENH: Add encoding option to numpy text IO. | ||||
| * | | MAINT: Various minor code cleanups. | Charles Harris | 2017-11-24 | 4 | -64/+90 |
| | | | | | | | | | | | | Minor cleanups of old code to reflect more modern usage. | ||||
| * | | MAINT: Refactor some code in npyio.py. | Charles Harris | 2017-11-21 | 4 | -55/+81 |
| | | | |||||
| * | | DOC: Add some docstrings and edit others. | Charles Harris | 2017-11-21 | 2 | -17/+69 |
| | | | | | | | | | | | | | | | | | | | | | Add docstrings for some of the support functions in _datasource and npyio in order to aid future maintainers. [ci skip] | ||||
| * | | ENH: Add encoding option to numpy text IO. | Julian Taylor | 2017-11-21 | 5 | -240/+771 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This modifies loadtxt and genfromtxt in several ways intended to add unicode support for text files by adding an `encoding` keyword to np.load, np.genfromtxt, np.savetxt, and np.fromregex. The original treatment of the relevant files was to open them as byte files, whereas they are now opened as text files with an encoding. When read, they are decoded to unicode strings for Python3 compatibility, and when written, they are encoded as specified. For backward compatibility, the default encoding in both cases is latin1. | ||||
* | | | DOC: v/h/dstack docstr shouldn't imply deprecation | Allan Haldane | 2017-11-21 | 1 | -15/+11 |
|/ / | | | | | | | [ci skip] | ||||
* | | Merge pull request #10021 from eric-wieser/no-dtype-bool-repr | Allan Haldane | 2017-11-18 | 4 | -11/+11 |
|\ \ | | | | | | | ENH: Don't show the boolean dtype in array_repr | ||||
| * | | ENH: don't show boolean dtype, as it is implied | Eric Wieser | 2017-11-13 | 4 | -11/+11 |
| | | | |||||
* | | | ENH: Make `np.in1d()` work for unorderable object arrays (#9999) | Jörg Döpfert | 2017-11-18 | 2 | -2/+39 |
|/ / | |||||
* | | ENH: Add `order=` keyword to `np.eye()` (#9996) | Danny Hermes | 2017-11-12 | 2 | -2/+16 |
| | | | | | | Fixes #9995 | ||||
* | | ENH: add Decimal support to numpy.lib.financial (#9952) | Garry Polley | 2017-11-11 | 2 | -96/+296 |
|/ | | | | | Adds support for Decimal to the rate, pv, fv, pmt, ppmt, ipmt, mirr, npv functions Closes #9781 | ||||
* | Clarify docstring for numpy.array_split | David Linke | 2017-10-28 | 1 | -1/+7 |
| | | | Before this addition, people could expect that only the last sub-array would have a different size. The added documentation and example make clear what the function really does. | ||||
* | Merge pull request #9916 from dfreese/fix/genfromtxt_names_doc | Charles Harris | 2017-10-24 | 1 | -5/+6 |
|\ | | | | | DOC: Clarify behavior of genfromtxt names field | ||||
| * | DOC: Clarify behavior of genfromtxt names field | David Freese | 2017-10-24 | 1 | -5/+6 |
| | | | | | | | | | | | | | | | | | | The documentation on the name parameter for npyio.genfromtxt uses the phrase "valid line" which doesn't completely describe it's behavior. This updates the documentation on the names field to indicate the first line, with or without a comment delimeter, will be taken for the names field. fixes #9878 | ||||
* | | Merge pull request #9900 from eric-wieser/simplify-piecewise | Charles Harris | 2017-10-24 | 2 | -19/+33 |
|\ \ | |/ |/| | MAINT/BUG: Remove special-casing for 0d arrays, now that indexing with a single boolean is ok | ||||
| * | BUG: Throw an error if too many functions are given to piecewise | Eric Wieser | 2017-10-23 | 2 | -1/+16 |
| | | | | | | | | Especially necessary given the strange heuristics that decay the number of conditions to 1 | ||||
| * | TST: Add test for 0d conditions in np.piecewise | Eric Wieser | 2017-10-22 | 1 | -0/+6 |
| | | |||||
| * | DOC: piecewise callables take 1d arrays | Eric Wieser | 2017-10-21 | 1 | -2/+2 |
| | | |||||
| * | MAINT/BUG: Remove special-casing for 0d arrays, now that indexing with a ↵ | Eric Wieser | 2017-10-21 | 2 | -16/+9 |
| | | | | | | | | | | | | single boolean is ok Also fix the test added in gh-4792, which didn't make sense, but passed anyway | ||||
* | | Make warnings for nanmin and nanmax consistent | Erik Quaeghebeur | 2017-10-23 | 1 | -1/+1 |
| | | |||||
* | | MAINT: Remove unused isscalar import | Eric Wieser | 2017-10-21 | 1 | -1/+1 |
|/ | |||||
* | DOC: Unindent enumeration in savetxt docstring | Andras Deak | 2017-10-21 | 1 | -4/+4 |
| | | | | | | The rendered markdown in the online documentation was broken due to the one-character indentation added in the multiline enumerations of the docstring of savetxt. | ||||
* | MAINT: rename mn and mx to first_edge and last_edge | Eric Wieser | 2017-10-19 | 1 | -18/+19 |
| | |||||
* | MAINT: Tidy np.histogram, and improve error messages | Eric Wieser | 2017-10-19 | 1 | -59/+77 |
| | | | | | | | | | | Split up the overloaded `bins` variable into separate names depending on its meaning Helpful errors are now emitted for: * non-integer bin counts (fixes gh-8072) * non-1d bin edges Removes another use of `np.isscalar`... | ||||
* | Merge pull request #9065 from eric-wieser/deprecate-bincount | Charles Harris | 2017-10-18 | 1 | -2/+2 |
|\ | | | | | DEP: 0 should be passed to bincount, not None | ||||
| * | MAINT: improve wording of error messages | Eric Wieser | 2017-10-17 | 1 | -2/+2 |
| | | |||||
* | | BUG: Allow `unravel_index(0, ())` to return () | Eric Wieser | 2017-10-17 | 1 | -1/+12 |
|/ | | | | Fixes gh-580 | ||||
* | Merge pull request #9868 from CatEars/update-docs | Charles Harris | 2017-10-16 | 1 | -14/+14 |
|\ | | | | | DOC: Update arraypad to use np.pad in examples | ||||
| * | DOC: Update arraypad to use np.pad in examples | Henke Adolfsson | 2017-10-16 | 1 | -14/+14 |
| | | |||||
* | | ENH: Save to ZIP files without using temporary files. | Serhiy Storchaka | 2017-10-15 | 1 | -22/+33 |
|/ | | | | | Since Python 3.6 it is possible to write directly to a ZIP file, without creating temporary files. | ||||
* | Merge pull request #9294 from b-carter/fix_histogram_monotonicity_check | Eric Wieser | 2017-09-24 | 2 | -1/+9 |
|\ | | | | | BUG: Fixes histogram monotonicity check for unsigned bin values | ||||
| * | allow non-strictly increasing bins | Brandon Carter | 2017-08-19 | 1 | -1/+1 |
| | | |||||
| * | minor change to the logic | Brandon Carter | 2017-06-25 | 1 | -1/+1 |
| | | |||||
| * | BUG: fixes unsigned bins monotonicity check, see #9222 | Brandon Carter | 2017-06-24 | 1 | -1/+1 |
| | | |||||
| * | TST: add test for unsigned bins monotonicity check, see #9222 | Brandon Carter | 2017-06-24 | 1 | -0/+8 |
| | | |||||
* | | MAINT: Use zip, not enumerate | Eric Wieser | 2017-09-21 | 1 | -17/+18 |
| | | | | | | | | Double-indexing is just a little harder to read | ||||
* | | Merge pull request #9408 from eric-wieser/gradient-fix | Charles Harris | 2017-09-21 | 2 | -8/+20 |
|\ \ | | | | | | | BUG: various fixes to np.gradient | ||||
| * | | MAINT: Use clearer variable | Eric Wieser | 2017-07-13 | 1 | -1/+1 |
| | | | |||||
| * | | BUG: Use np.ndim not asarray, to allow duck-types | Eric Wieser | 2017-07-13 | 1 | -7/+6 |
| | | | |||||
| * | | BUG: Only allow 1d distance arrays | Eric Wieser | 2017-07-13 | 2 | -1/+7 |
| | | | | | | | | | | | | | | | | | | 2d arrays would work, but in unpredictable and undocumented ways. This at least makes gh-9401 give a better error message. | ||||
| * | | BUG: Allow 0d arrays instead of scalars in gradient | Eric Wieser | 2017-07-13 | 2 | -8/+15 |
| | | | | | | | | | | | | This fixes gh-8292 | ||||
* | | | ENH Better error message for savetxt when X.ndim > 2 | Nelle Varoquaux | 2017-09-20 | 2 | -2/+11 |
| | | | | | | | | | | | | | | | savetxt does not support saving arrays of dimension 0 or higher than 2. This pull request improves the message of the error raised. | ||||
* | | | DOX: Fix mistaken word in nanprod docstring (#9703) | Robert T. McGibbon | 2017-09-17 | 1 | -1/+1 |
| | | | |||||
* | | | ENH: Align data in np.save() at 64 bytes (#9025) | John Zwinck | 2017-09-13 | 2 | -22/+36 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, saving format version 1 would align to 16 bytes, and saving version 2 would align improperly (bug #8085). Alignment is now always at least 64 bytes in either version, which supports memory mapping of the saved files on Linux, where mmap() offset must be a multiple of the page size. Why 64 bytes? Simply because we don't know of a case where more is needed. AVX alignment is 32 bytes; AVX-512 is 64. Fixes #8085, closes #8598. | ||||
* | | | DOC: Correct the signature in pad doc for callable mode. | Michael Seifert | 2017-09-10 | 1 | -8/+14 |
| | | | | | | | | | | | | [skip ci] | ||||
* | | | Merge pull request #6053 from ahaldane/multifield_structassign | Charles Harris | 2017-09-09 | 1 | -2/+2 |
|\ \ \ | | | | | | | | | MAINT: struct assignment "by field position", multi-field indices return views | ||||
| * | | | TST: Fix/Remove old unit tests for structure assignment | Allan Haldane | 2017-09-07 | 1 | -2/+2 |
| | | | |