| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/ / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
When the mask argument was nomask, commit 8da9c71 changed the behavior
to depend on shrink=True as well, resulting in array(False) false being
returned when shrink=True, which in turn led to bugs because nomask is a
singleton and is detected by `mask is nomask`. That dectection fails
when nomask is replaced by array(False).
Closes #6667.
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
MAINT: Typo in arrays.indexing.rst Issue#6670
|
|/ / / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DOC: Sync 1.10.2 release notes with maintenance/1.10.x.
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | | |
[ci skip]
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Fix ma dot
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Test that ma.dot always returns a masked array.
Test basic that the new out parameter in ma.dot works.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The basic implementation of ma.dot is moved from the method to the function
and the function itself is moved from extras.py to core.py on account of
import complications. The mask_rowcols function from extras is also moved
to core.py as it is needed by dot. For backwards compatibility, both
functions are still exported in extras.__all__ and can be imported
from that module. They are not included in part of core.__all__.
An out parameter is also added to ma.dot.
This PR also closes #6611.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Fix some long lines and indentation in numpy/ma/core.py and
numpy/ma/extras.py
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
MAINT: Dictionary litteral
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
MAINT: remove _build_utils/waf.py.
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
This was used by Bento, and support for Bento was removed in gh-6268.
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
MAINT: Remove useless semicolon
|
| |/ / / / / / / |
|
|\ \ \ \ \ \ \ \
| |_|/ / / / / /
|/| | | | | | | |
MAINT: use list litterals
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
BUG: Fix memleak in _convert_from_dict
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fixes a memleak introduced in #5920, where PyDict_GetItemString
was replaced by PyMapping_GetItemString which returns a new ref.
Fixes #6636
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
ENH: make recarray.getitem return a recarray
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
recarray.__getitem__ should return a recarray when the returned value
had structured type (it's documented to do so).
Fixes #6641
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
BUG: Make allclose return python bool.
|
| | | | | | | |
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The function was returning an ndarray subtype when the at least one
of the arguments was a subtype.
Closes #6475.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix swig make_fortran function.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
The function was calling PyArray_FromArray with NPY_FORTRANORDER instead
of NPY_ARRAY_F_CONTIGUOUS. The first is of type NPY_ORDER and the second
is a flag.
Closes #6618. [ci skip]
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Add choice and dirichlet to numpy.random.__all__.
|
| | |_|_|_|/
| |/| | | |
| | | | | |
| | | | | | |
Closes #6602.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
MAINT: random: allow nonc==0 in noncentral_chisquare.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | | |
Noncentral chi-square reduces to a central chi-square, so
just defer to that.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Update 1.10.2 release notes.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
[ci skip]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Sync 1.10.2 release notes in master with 1.10.x.
|
|/ / / / /
| | | | |
| | | | |
| | | | | |
[ci skip]
|
|\ \ \ \ \
| | | | | |
| | | | | | |
Fix swig for relaxed stride checking
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Clarify isfortran checks if an array is both Fortran contiguous and
*not* C contiguous. The suggests that it only checks if the array is F
contiguous, but that is not the case.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
PyArray_ISFORTRAN was used to implement array_is_fortran in numpy.i when
what was wanted was PyArray_IS_F_CONTIGUOUS. The difference is that
PyArray_ISFORTRAN will return False if the array is c_contiguous.
Previous to relaxed stride checking this did not matter, but currently
arrays with ndim > 1 may be both C and Fortran contiguous and that
results in errors when PyArray_ISFORTRAN is mistakenly used to check for
Fortran contiguity.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
update 1.10.2 release notes
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
[ci skip]
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: immutable _arraymethod function in ma.core
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Replace the _arraymethod class in ma.core with a function factory which
returns class method wrappers around basic array methods. These methods are
bound to the MaskedArray instance and are immutable.
Previously _arraymethod was a class which would incorrectly operate on the
MaskedArray object which last accessed the particular named function.
closes #5247
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DEP: Remove split `FutureWarning` for empty arrays in the result.
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Note that the FutureWarning has been removed and that empty arrays
resulting from np.lib.split will preserve dimensions instead of always
having shape (0,).
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Note that empty array resulting from a split will preserve dimensions
starting in Numpy 1.11.
|
| | |/ / / / /
| |/| | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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.
|
|\ \ \ \ \ \ \
| |_|_|/ / / /
|/| | | | | | |
DOC: A bit of copy-editing of the 'NumPy for Matlab Users' guide.
|
|/ / / / / / |
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
DOC: Fix an argument in 'Numpy for Matlab Users'.
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
I've seen at least three occurrences (a couple on stackoverflow, and one
private email) of someone using the argument 'order=15' in a call to the
'set_integrator' method of 'scipy.integrate.ode'. Presumably this is
because of the suggestion in the "NumPy for Matlab Users" guide to
replace 'ode15s' with 'scipy.integrate.ode(f).set_integrator('vode',
method='bdf', order=15)'. The stiff solver in 'vode'--presumably the
solver of interest for someone using 'ode15s'--has a maximum order of 5,
and the non-stiff solver has maximum order of 12. (The maximum order of
'ode15s' is also 5; the '15' in the name refers to the variable order
ranging from 1 to 5.)
|