| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| |\
| |
| | |
Backport 8045, DOC: Update 1.11.2 release notes.
|
| |/
|
|
| |
[ci skip]
|
| |\
| |
| | |
Backport 8042, BUG: core: fix bug in NpyIter buffering with discontinuous arrays
|
| |/
|
|
|
|
| |
It is possible to skip copying an array to the buffer only if the
reduction outer iterator is 1-dimensional --- the array may not be
c-contiguous.
|
| |\
| |
| | |
DOC: Update 1.11.2 release notes.
|
| |/
|
|
| |
[ci skip]
|
| |\
| |
| | |
Backport 8030, BUG: fix np.ma.median with only one non-masked value
|
| |/
|
|
| |
and an axis argument. Add test.
|
| |\
| |
| | |
Backport 8016, BUG: Fix numpy.ma.median.
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
| |
This fixes four bugs:
- Use of booleans for indexing in ma.extras._median
- Error when mask is nomask and ndim != 1 in ma.extras._median
- Did not work for 0-d arrays.
- No out argument for {0,1}-d arrays.
Closes #8015.
|
| |\
| |
| | |
Backport 8018, BUG: Fixes return for np.ma.count if keepdims is True and axis is None
|
| |/
|
|
|
|
|
|
|
|
| |
The returned value is wrapped in an integer array of appropriate dimensions
if keepdims is True and axis is None for np.ma.count.
Also included:
- Whitespace after "," (PEP8)
- any instead of np.any when checking if any axis is out of bounds (performance)
|
| |\
| |
| | |
Backport 8011, DOC: Update 1.11.2 release notes.
|
| | |
| |
| |
| | |
[ci skip]
|
| |\ \
| |/
|/| |
Backport 8008, MAINT: Remove leftover imp module imports.
|
| |/
|
|
|
|
|
| |
There were two remaining imports of the deprecated imp module, neither
of which seems to have been used beyond the import.
Closes #5997.
|
| |\
| |
| | |
Backport 8006, DOC: Update 1.11.2 release notes.
|
| |/
|
|
| |
[ci skip]
|
| |\
| |
| | |
Backport 7956, BLD: remove __NUMPY_SETUP__ from builtins at end of setup.py
|
| | |
| |
| |
| | |
May help reduce the occurrence of gh-2434.
|
| |\ \
| |/
|/| |
Backport 7977, DOC: Create 1.11.2 release notes.
|
| |/
|
|
| |
[ci skip]
|
| |\
| |
| | |
Backport 7963, BUG: MSVCCompiler grows 'lib' & 'include' env strings exponentially.
|
| |/
|
|
|
|
|
|
|
| |
Each time an MSVCCompiler was instantiated the old values of
os.environ['lib'] and os.environ['include'] were concatenated to the new
values set by initializing the distutils.msvc{,9}compiler.MSVCCompiler
base class. Consequently when the the old and new values of those
variables were the same, they doubled in size with each instantiation,
leading to quickly hitting the 32,768 character limit.
|
| |\
| |
| | |
Backport 7937, BUG: Guard against buggy comparisons in generic quicksort.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Generic types may have buggy comparison operators in which case the
sentinal values in quicksort cannot be counted on to keep the pointers
from running off the ends of the array. The solution here is to
explicitly check that the pointers are in bounds when sorting generic
types.
Closes #7934.
|
| |\ \
| | |
| | | |
Backport 7941, BUG: Make sure numpy globals keep identity after reload.
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Reloading currently causes problems because global classes defined in
numpy/__init__.py change their identity (a is b) after reload. The
solution taken here is to move those classes to a new non-reloadable
module numpy/_globals and import them into numpy from there.
Classes moved are ModuleDeprecationWarning, VisibleDeprecationWarning,
and _NoValue.
Closes #7844.
|
| |\ \
| |/
|/| |
Backport 7952, BUG: Use keyword arguments to initialize Extension base class.
|
| |/
|
|
|
|
|
|
|
|
|
|
| |
Currently numpy.distutils.Extension class subclasses python's
distutils.extension.Extension class and initializes the base class with
a call that uses positional arguments rather than keyword arguments.
This causes problems with setuptools 25.4.0 where the Extension class
gets a new init function that expects keyword rather than positional
arguments. We should have been using keyword arguments all along and our
luck has run out, so use proper keywords
Closes #7951.
|
| |\
| |
| | |
Backport 7931, BUG: Check for HAVE_LDOUBLE_DOUBLE_DOUBLE_LE in npy_math_complex.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The `_real_part_reciprocal` function is coded in two ways, one depending
on functions specific to IEEE floating point and the other using generic
code that should always work. Because PPC long double is not IEEE the
generic version should always be chosen for that architecture, but that
is currently only done when the PPC is configured as big endian. This
PR makes sure that the generic version is also chosen when the PPC is
configured as little endian.
Closes #7836.
|
| |\ \
| | |
| | | |
Backport 7925, Monkey-patch _msvccompile.gen_lib_option like any other compilators
|
| | |/
| |
| |
| |
| |
| |
| | |
`setuptools` is now using `_msvccompile` instead of `msvccompile9`.
numpy is monkey-patching symmetrically `gen_lib_options` and `spawn` function for all compilators. But `_msvccompile.gen_lib_options` was not monkey-patched while `_msvccompile.spawn` is already monkey-patched throug the super class `ccompiler.spawn`.
This patch only symmetrically patch `_msvccompile` to prevent param file quoting.
|
| |\ \
| | |
| | | |
Backport #7911: BUG: fix for issue#7835 (ma.median of 1d)
|
| | | | |
|
| | |/ |
|
| |\ \
| |/
|/| |
Backport 7908, BLD: Fixed MKL detection for recent versions of this library.
|
| |/ |
|
| |\
| |
| | |
BUG: Production install of numpy should not require nose.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This fixes a Python 2.6 specific problem resulting from a failed import
of SkipTest. SkipTest was not part of unittest until Python 2.7 and the
fallback was to import it from nose.
Closes #7498.
[ci skip]
|
| |\ \
| |/
|/| |
Backport 7903, BUG: fix float16 type not being called due to wrong ordering
|
| |/
|
|
| |
closes gh-7897
|
| |\
| |
| | |
Backport 7894, BUG: construct ma.array from np.array which contains padding
|
| | | |
|
| |/
|
|
|
|
|
| |
Structured dtypes with padding bytes fail in MaskedArrays
because of padding bytes in `dtype.descr`.
Fix is to avoid using dtype.descr.
|
| |\
| |
| | |
Backport 7853, BUG: Raise RuntimeError when reloading numpy is attempted.
|
| |/
|
|
|
|
|
|
|
|
| |
There seems to be little use in reloading numpy as any changed modules
that are imported into numpy would need to be reloaded first in order to
see any changes. Furthermore, reloading causes problems as global
classes defined in numpy/__init__.py change their identity. Hence we
raise a RuntimeError when an attempt to reload numpy is made.
Closes #7844.
|