Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #10108 from eric-wieser/datetime_data-doc | Allan Haldane | 2017-11-28 | 1 | -0/+98 |
|\ | | | | | DOC: Add documentation for datetime_data | ||||
| * | DOC: Add documentation for datetime_data | Eric Wieser | 2017-11-27 | 1 | -0/+37 |
| | | | | | | | | [ci-skip] | ||||
| * | DOC: Add documentation for datetime_as_string | Eric Wieser | 2017-11-27 | 1 | -0/+61 |
| | | | | | | | | [ci-skip] | ||||
* | | Merge pull request #10111 from eric-wieser/improve-datetime64-repr-alignment | Allan Haldane | 2017-11-28 | 3 | -29/+62 |
|\ \ | | | | | | | ENH: Improve alignment of datetime64 arrays containing NaT | ||||
| * | | ENH: Improve alignment of datetime64 arrays containing NaT | Eric Wieser | 2017-11-28 | 3 | -29/+62 |
| |/ | | | | | | | | | | | Makes them consistent with timedelta Fixes #10102 | ||||
* | | 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 | 2 | -12/+60 |
|\ \ | |/ |/| | 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 | 2 | -12/+60 |
| | | | | | | | | | | | | Extracted from gh-8714 [ci-skip] | ||||
* | | Merge pull request #10096 from eric-wieser/fix-assert_equal-datetime | Charles Harris | 2017-11-27 | 2 | -28/+46 |
|\ \ | | | | | | | BUG: Fix assert_equal on time-like objects | ||||
| * | | BUG: Fix assert_equal on time-like objects | Eric Wieser | 2017-11-26 | 2 | -28/+46 |
| | | | | | | | | | | | | | | | | | | Also does some cleanup on the float assert_equal to make it look more similar. Fixes #10081 | ||||
* | | | Merge pull request #10079 from mhvk/ufunc-doc-include-generalized | Charles Harris | 2017-11-27 | 1 | -5/+35 |
|\ \ \ | | | | | | | | | DOC: mention generalized ufuncs, document signature attribute | ||||
| * | | | DOC: add docstring to ufunc.signature | Marten van Kerkwijk | 2017-11-25 | 1 | -5/+35 |
| |/ / | |||||
* | | | Merge pull request #10097 from eric-wieser/fix-timedelta-repr | Charles Harris | 2017-11-27 | 2 | -16/+27 |
|\ \ \ | | | | | | | | | BUG: Fix crash for 0d timedelta repr | ||||
| * | | | BUG: Fix crash in repr of 0d timedelta array | Eric Wieser | 2017-11-27 | 2 | -11/+19 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was missed when the formatters were changed to take an ND. Also changed to use the builtin isnat, rather than rolling one together where needed. Fixes #10094 | ||||
| * | | | TST: Use textwrap.dedent to clarify purpose of test | Eric Wieser | 2017-11-27 | 1 | -5/+8 |
| |/ / | |||||
* | | | BUG: Fix out-of-bounds access when handling 0d ndarrays (#10101) | Thomas Köppe | 2017-11-27 | 1 | -1/+3 |
| | | | |||||
* | | | Merge pull request #10068 from seberg/issue-10066 | Charles Harris | 2017-11-26 | 2 | -4/+56 |
|\ \ \ | | | | | | | | | BUG: Fix memory leak for subclass slicing | ||||
| * | | | BUG: Fix memory leak for subclass slicing | Sebastian Berg | 2017-11-26 | 2 | -4/+56 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A slice object was created if __getslice__/__setslice__ was used by an inherited subclass (through python or directly) but not decref'd. Closes gh-10066 | ||||
* | | | | 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. | ||||
* | | | | Merge pull request #10044 from ahaldane/futurewarn_voiditem | Charles Harris | 2017-11-26 | 2 | -0/+24 |
|\ \ \ \ | |_|/ / |/| | | | DEP: FutureWarning for void.item(): Will return bytes | ||||
| * | | | DEP: FutureWarning for void.item(): Will return bytes | Allan Haldane | 2017-11-26 | 2 | -0/+24 |
| | | | | |||||
* | | | | Merge pull request #10042 from eric-wieser/better-ndarray.__int__ | Allan Haldane | 2017-11-23 | 3 | -186/+148 |
|\ \ \ \ | | | | | | | | | | | BUG: Allow `int` to be called on nested object arrays, fix `np.str_.__int__` | ||||
| * | | | | BUG: Allow `int` to be called on nested object arrays | Eric Wieser | 2017-11-17 | 3 | -186/+148 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rather than assuming that any object array is self-referencing, we can just use PyEnter_RecursiveCall in: * `__int__` * `__float__` * `__long__` * `__hex__` * `__oct__` This works towards (but does _not_ fix) #9972, by not directly touching the `nb_*` slots ourselves. Substantial code deduplication here. Error message is different, but perhaps also better: ```python >>> int(np.array([None])) TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' # now TypeError: cannot convert to an int; scalar object is not a number #before ``` | ||||
* | | | | | Merge pull request #10057 from ahaldane/vhdstack_docstring | Charles Harris | 2017-11-21 | 2 | -39/+30 |
|\ \ \ \ \ | |_|_|/ / |/| | | | | DOC: v/h/dstack docstr shouldn't imply deprecation | ||||
| * | | | | DOC: v/h/dstack docstr shouldn't imply deprecation | Allan Haldane | 2017-11-21 | 2 | -39/+30 |
| | | | | | | | | | | | | | | | | | | | | [ci skip] | ||||
* | | | | | Merge pull request #9458 from eric-wieser/copyto-scalar | Allan Haldane | 2017-11-20 | 2 | -1/+16 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: Improve performance of np.copyto(where=scalar) | ||||
| * | | | | | DOC: Fix incorrect default for where | Eric Wieser | 2017-07-24 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | None would be cast to False, which is the opposite of the intended default! | ||||
| * | | | | | ENH: Improve speed of np.copyto(..., where=True/False) | Eric Wieser | 2017-07-24 | 1 | -0/+15 |
| | | | | | | | | | | | | | | | | | | | | | | | | This could be useful inside maskedarray | ||||
* | | | | | | ENH: Improve MaskedArray.__repr__ | Eric Wieser | 2017-11-20 | 3 | -21/+153 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Commas are now used within data and mask * dtypes are shown for float32, int8 etc, where they previously weren't * Wrapped fields are now correctly indented * Spaces removed around = to match PEP8 | ||||
* | | | | | | MAINT: Extract dtype printing code into helper function | Eric Wieser | 2017-11-20 | 1 | -12/+25 |
| | | | | | | |||||
* | | | | | | TST: Improve assertion error messages | Eric Wieser | 2017-11-20 | 1 | -5/+8 |
| | | | | | | |||||
* | | | | | | Merge pull request #10032 from ahaldane/remove_flexible_newline | Eric Wieser | 2017-11-20 | 2 | -18/+49 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | MAINT: Remove newline before dtype in repr of arrays | ||||
| * | | | | | | TST: Update tests for changed flexible newline | Allan Haldane | 2017-11-20 | 1 | -15/+14 |
| | | | | | | | |||||
| * | | | | | | MAINT: Output appropriate newline before dtype in array reprs | Allan Haldane | 2017-11-20 | 2 | -10/+42 |
| | |/ / / / | |/| | | | | | | | | | | | | | | | | Fixes #9717 | ||||
* | | | | | | BUG: Have np.ma.dump and np.ma.load close their files (#10055) | orbit-stabilizer | 2017-11-19 | 1 | -4/+8 |
| | | | | | | | | | | | | | | | | | | Fixes #10045 | ||||
* | | | | | | STY: C style whitespace fixups | Charles Harris | 2017-11-19 | 1 | -35/+35 |
|/ / / / / | | | | | | | | | | | | | | | | [ci skip] | ||||
* | | | | | Merge pull request #10034 from ahaldane/legacy_scalars | Charles Harris | 2017-11-19 | 4 | -4/+229 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: legacy-printing-mode preserves 1.13 float & complex str | ||||
| * | | | | | MAINT: legacy-printing-mode preserves 1.13 float & complex str | Allan Haldane | 2017-11-18 | 4 | -4/+229 |
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10029 | ||||
* | | | | | | BUG: Fix legacy printing mode check. | Charles Harris | 2017-11-18 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Merge pull request #10021 from eric-wieser/no-dtype-bool-repr | Allan Haldane | 2017-11-18 | 19 | -87/+119 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | 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 | 19 | -86/+88 |
| | | | | | | | |||||
| * | | | | | | MAINT: Add helper function to determine whether to show dtype in repr | Eric Wieser | 2017-11-13 | 1 | -1/+31 |
| | |_|/ / / | |/| | | | | |||||
* | | | | | | ENH: Make `np.in1d()` work for unorderable object arrays (#9999) | Jörg Döpfert | 2017-11-18 | 2 | -2/+39 |
| |/ / / / |/| | | | | |||||
* | | | | | Merge pull request #10030 from ahaldane/legacy_mode_fixes | Charles Harris | 2017-11-18 | 2 | -53/+70 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: Legacy mode specified as string, fix all-zeros legacy bug | ||||
| * | | | | | MAINT: add back in errstate ignore in FloatingFormat | Allan Haldane | 2017-11-17 | 2 | -3/+9 |
| | | | | | | |||||
| * | | | | | MAINT: Add `.. versionadded ::` to parameter documentation. | Charles Harris | 2017-11-17 | 1 | -2/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note that the `legacy` keyword was added in NumPy 1.14.0. [ci skip] |