| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
More sys.version cleanup.
|
|
|
|
|
|
|
| |
The bug occurs since numpy 1.16. Before that empty descr corresponds to
`np.dtype([])`. This fixes the problem by following numpy 1.15's
behavior.
Closes gh-15396
|
|
|
|
|
|
|
|
|
| |
This PR uses simple cases of PEP 380 to rewrite:
for v in g:
yield v
into:
yield from <expr>
|
|\
| |
| | |
ENH: Make use of ExitStack in npyio.py
|
| | |
|
|/ |
|
|\
| |
| | |
MAINT: Replace basestring with str.
|
| |
| |
| |
| |
| |
| |
| | |
This replaces basestring with str except in
- tools/npy_tempita/
- numpy/compat/py3k.py
|
|\ \
| |/
|/| |
MAINT: Revise imports from urllib modules
|
| | |
|
|/ |
|
|\
| |
| | |
MAINT: Cleanup python2 references
|
| | |
|
|\ \
| | |
| | | |
MAINT: Python2 Cleanups
|
| |/ |
|
|/ |
|
|
|
|
| |
This implements NEP 34.
|
| |
|
| |
|
| |
|
|\
| |
| | |
MAINT: cleanup sys.version dependant code
|
| | |
|
|/ |
|
|
|
|
| |
Now that 2.7 is gone, there is no need to pop manually from kwarg dictionaries.
|
|
|
|
|
|
|
| |
Inheriting from object was necessary for Python 2 compatibility to use
new-style classes. In Python 3, this is unnecessary as there are no
old-style classes.
Dropping the object is more idiomatic Python.
|
|
|
|
|
| |
As numpy is Python 3 only, these import statements are now unnecessary
and don't alter runtime behavior.
|
|
|
|
|
|
|
| |
In numpy.gradient, convert integer array inputs to float64 to avoid
unwanted modular arithmetic.
Closes gh-15207.
|
|
|
|
| |
* Remove a few unused imports in several files.
|
|
|
|
| |
* Remove unused imports.
|
|
|
|
|
|
| |
* Remove conditional imports that handled Python 2.
* Remove unused imports.
* Partial PEP 8 clean up.
|
|
|
|
|
|
|
| |
* Remove the unused function _to_filehandle().
* Remove conditional imports that handled Python 2.
* Remove unused imports.
* Fix a few line lengths (PEP 8).
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit c088383cb290ca064d456e89d79177a0e234cb8d and
uses the same kind casting rule for the additional keyword arguments
``to_end`` and ``to_begin``. This results in slightly more leniant
behaviour for integers (which can now have overflows that are
hidden), but fixes an issue with the handling of NaN.
Generally, this behaviour seems more conistent with what NumPy does
elsewhere. The Overflow issue exists similar in many other places
and should be solved by integer overflow warning machinery while
the actual cast takes place.
Closes gh-13103
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This reverts commit c088383cb290ca064d456e89d79177a0e234cb8d and
uses the same kind casting rule for the additional keyword arguments
``to_end`` and ``to_begin``. This results in slightly more leniant
behaviour for integers (which can now have overflows that are
hidden), but fixes an issue with the handling of NaN.
Generally, this behaviour seems more conistent with what NumPy does
elsewhere. The Overflow issue exists similar in many other places
and should be solved by integer overflow warning machinery while
the actual cast takes place.
Closes gh-13103
|
| | |
|
| |
| |
| |
| | |
Fix wrong multiplier for /proc/meminfo, and do style cleanups.
|
|\ \
| | |
| | | |
MAINT: Only copy input array in _replace_nan() if there are nans to replace
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Using generators instead of full-blown lists
Using set for search instead of list
Using min to get single element insteaf of sorting full list
|
|\ \ \
| | | |
| | | | |
DEP: issue deprecation warning when creating ragged array (NEP 34)
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This PR allows the axis keyword in expand_dims to be a tuple of ints. Previously, axis could only be an int.
This issue was previously discussed in gh-12290 and the changes are based on gh-12290 (comment).
This PR also removes the deprecation added in v1.13 (2017-05-17), where previously axis could be outside of the range (-a.ndim - 1) <= axis <= a.ndim. Such an axis value will now raise an AxisError. Please let me know if it's too soon to remove this deprecation (I could not find any dev docs stating the length of the numpy deprecation cycle).
Closes gh-12290.
|
| | | |
| | | |
| | | | |
Address gh-14142 for the 1.18 release: warn when saving a dtype with metadata that cannot be loaded.
|
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
Use `ddof = 1` instead of 9, and remove a confusing comment.
Closes gh-15010.
|
| | | |
|
| | |
| | |
| | | |
Parameter fname: generator must return byte strings for Python 3, not Python3k.
|
| |/
|/|
| |
| |
| | |
Using generators instead of full-blown lists
Using set for search instead of list
Using min to get single element insteaf of sorting full list
|
| |
| |
| |
| | |
Relates to gh-6103
|