summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | Merge pull request #11735 from charris/fix-ma-flexible-testCharles Harris2018-08-181-8/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: Fix test sensitive to platform byte order.
| | * | | | | | BUG: Fix test sensitive to platform byte order.Charles Harris2018-08-181-8/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The TestMaskedArrayMethods.test_sort_flexible test was failing for for the subarray checks on big endian systems. That was probably due to subarrays being sorted as bytestrings. This fixes the test by simply checking that the sort does not error rather than checking the result. Closes #11716.
| * | | | | | | Merge pull request #11774 from charris/fix-intersect1dCharles Harris2018-08-172-17/+32
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: Fix regression in intersect1d.
| | * | | | | | | BUG: Fix regression in intersect1d.Charles Harris2018-08-172-17/+32
| | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function was failing for non-ndarray objects that defined that defined __array__, in particular `xarray.DataArray`. Fix by calling asanyarray on the inputs, which was done implicitly before. Closes #11772.
| * | | | | | | Merge pull request #11715 from QuLogic/no-networkCharles Harris2018-08-171-2/+2
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | TST: Fix urlopen stubbing.
| | * | | | | | | TST: Fix urlopen stubbing.Elliott Sales de Andrade2018-08-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | setup/teardown doesn't work, but setup_module/teardown_module does, at least in pytest.
| * | | | | | | | Merge pull request #11756 from charris/fix-testing-utilsCharles Harris2018-08-171-6/+15
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: Make assert_array_compare more generic.
| | * | | | | | | | MAINT: Make assert_array_compare more generic.Charles Harris2018-08-171-6/+15
| | | |_|_|/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use np.all instead of the *.all method to be a bit more robust against bad subclasses of ndarray that may change the behavior of the method. Closes #11743.
| * | | | | | | | Merge pull request #11742 from mattip/doc-warningsCharles Harris2018-08-173-21/+24
| |\ \ \ \ \ \ \ \ | | |_|_|/ / / / / | |/| | | | | | | DOC: Reduce warnings and cleanup redundant c-api documentation
| | * | | | | | | DOC: reduce warnings and cleanup redundant c-api documentationmattip2018-08-143-21/+24
| | | | | | | | |
| * | | | | | | | BUG: check return value of _buffer_format_string (#11754)Matti Picus2018-08-162-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test, fix for not checking return value from call to _buffer_format_string, exposed when datetime64 dtype used in a field. Also fixes some variable types to be Py_ssize_t. * BUG: check return value of _buffer_format_string * fix from review, document _buffer_format_string * BUG: Fix type in declaration of old_offset. Type should be Py_ssize_t. * MAINT: Explicitly return -1 for error. * MAINT: Fix typo and style nit.
| * | | | | | | | BUG: Fixes for unicode field names in Python 2 (#11642)Chris Billington2018-08-163-53/+70
| | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fixes for unicode field names in Python 2 * Allow specifying a single comma-separated unicode string of names in np.rec.fromarrays * Allow sorting on unicode field names. This addresses some of the problems raised in issue #2407 * Use skipif decorator, check constructed array has correct data * cleaner isinstance() check, have new tests to run on py3 as well * Fix silly mistake in test
| * | | | | | | Merge pull request #11745 from charris/fix-polyfit-docEric Wieser2018-08-152-3/+2
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DOC: Small docstring fixes for old polyfit.
| | * | | | | | | DOC: Small docstring fixes for old polyfit.Charles Harris2018-08-152-3/+2
| | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove misleading reference to numpy/polynomial/polynomial/polyfit. * Add missing period in numpy/polynomial/_polybase.py
| * | | | | | | Merge pull request #11708 from charris/fix-bz2-python2-loadtxtCharles Harris2018-08-152-4/+27
| |\ \ \ \ \ \ \ | | |/ / / / / / | |/| | | | | | BUG: Fix regression in np.loadtxt for bz2 text files in Python 2.
| | * | | | | | BUG: Fix regression in loadtxt for bz2 text files in Python 2.Charles Harris2018-08-102-4/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Text bz2 files are not well supported in Python2, and, following the NumPy upgrade in text handling, loadtxt was raising an error when they were detected. This led to problems for those few who were using such files. This patch is a quick fix that issues a RuntimeWarning, then opens those files under the assumption that they are latin1 encoded. Caveat emptor. Closes #11633.
| * | | | | | | DOC: recommend polynomial.Polynomial over np.polyfit (#11733)Matti Picus2018-08-142-2/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: reccomend polynomail.Polynomial over np.polyfit * update from review * update from review, fix links * fix from review
| * | | | | | | BUG: deprecation triggers segfaultmattip2018-08-142-1/+6
| | |/ / / / / | |/| | | | |
| * | | | | | Merge pull request #11722 from eric-wieser/fix-random-lgtmCharles Harris2018-08-142-145/+55
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | MAINT: Remove duplicate docstring and incorrect location of __all__ from np.random
| | * | | | | | MAINT: Remove duplicate docstring and incorrect location of __all__ from ↵Eric Wieser2018-08-122-145/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | np.random This should fix a lot of LGTM errors
| * | | | | | | Merge pull request #11725 from QuLogic/selected-real-kindCharles Harris2018-08-141-1/+1
| |\ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | | BUG: Fix Fortran kind detection for aarch64 & s390x.
| | * | | | | | Fix Fortran kind detection for aarch64 & s390x.Elliott Sales de Andrade2018-08-121-1/+1
| | | | | | | |
| * | | | | | | Merge pull request #11727 from QuLogic/print-longdouble-ppc64leCharles Harris2018-08-132-39/+14
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: Fix printing of longdouble on ppc64le.
| | * | | | | | | BUG: Fix printing of longdouble on ppc64le.Elliott Sales de Andrade2018-08-132-39/+14
| | |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The high and low parts of the IBM double-double always come in the same order, regardless of the endianness of the system, according to [1]. [1] https://www.ibm.com/support/knowledgecenter/en/ssw_aix_71/com.ibm.aix.genprogc/128bit_long_double_floating-point_datatype.htm
| * | | | | | | DOC: fix typo in vectorize docstringMatthew Brett2018-08-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "an single" typo pointed out by keithbriggs - see gh-11730.
| * | | | | | | DOC: fix capitalization of kilojoulesMatthew Brett2018-08-131-1/+1
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | Spotted by keithbriggs - see: gh-11728.
| * | | | | | Merge pull request #11528 from eric-wieser/polynomial-ipython-latexCharles Harris2018-08-128-2/+156
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | ENH: Add support for ipython latex printing to polynomial
| | * | | | | | ENH: Add support for ipython latex printing to polynomialEric Wieser2018-08-128-2/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Choices made, and the alternatives rejected (for no particularly strong reason): 1. Show terms in ascending order, to match their internal representation * alternative: descending, to match convention 2. Shows 0 terms in gray * alternative: omit entirely * alternative: show normally to aid comparison 3. Write each term as `basis(ax + b) * alternative: write as `basis(u) ... where u = ax + b` * alternative: show the normalized polynomial In future it would perhaps make sense to expose these options to the end user
| * | | | | | | Merge pull request #11703 from eric-wieser/remove-_import_toolsCharles Harris2018-08-122-361/+1
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Remove np.pkgload, which seems to be unusable anyway
| | * | | | | | | DEP: Remove np.pkgload, which was deprecated in 1.10Eric Wieser2018-08-122-361/+1
| | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Attempts to use this on either cpython27 or cpython35, in either a shell or a script, gives: NameError: name '__path__' is not defined Perhaps I'm calling it wrong, but it might just be broken.
| * | | | | | | Merge pull request #11436 from uds5501/document-average-return-typeMatti Picus2018-08-121-6/+19
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DOC: Document average return type
| | * | | | | | | Update function_base.pyUddeshya Singh2018-08-121-4/+4
| | | | | | | | |
| | * | | | | | | Update function_base.pyUddeshya Singh2018-07-131-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fixed grammatical mistakes * added a space before Example
| | * | | | | | | Update function_base.pyUddeshya Singh2018-07-091-5/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * further elaborated the return variable types * fixed the space error
| | * | | | | | | Fixing basic build errorsUddeshya Singh2018-07-011-2/+2
| | | | | | | | |
| | * | | | | | | DOC: update return type description for averageUddeshya Singh2018-06-281-6/+13
| | | | | | | | |
| * | | | | | | | Merge pull request #11717 from charris/fix-einsum-default-optimizeSebastian Berg2018-08-121-2/+2
| |\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / / | |/| | | | | | | MAINT: Make einsum optimize default to False.
| | * | | | | | | MAINT: Make einsum optimize default to False.Charles Harris2018-08-121-2/+2
| | | |_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | False is the documented value and the value used in 1.14, but 1.15.0 was turning optimization on when there were more than two arguments, resulting in slowdowns for small matrices. This choice can be revisited as the einsum optimization code matures. Closes #11714.
| * | | | | | | BUG: Fix undefined functions on big-endian systems.Elliott Sales de Andrade2018-08-111-2/+3
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Both these functions are used by `Dragon4_PrintFloat_IEEE_binary128`, which was recently made available on big-endian systems without these in #11568.
| * | | | | | Merge pull request #11695 from eric-wieser/missing-PyErr_NoMemoryCharles Harris2018-08-092-0/+3
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG: Add missing PyErr_NoMemory after failing malloc
| | * | | | | | BUG: Add missing PyErr_NoMemory after failing mallocEric Wieser2018-08-082-0/+3
| | | |/ / / / | | |/| | | |
| * | | | | | Merge pull request #11691 from charris/fix_matrix_power_regressionMatti Picus2018-08-082-61/+90
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | | BUG: Make matrix_power again work for object arrays.
| | * | | | | BUG: Make matrix_power again work for object arrays.Charles Harris2018-08-082-61/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced in #10985. Using matmul instead of dot lost the object type while adding the ability to deal with matrix stacks. This implements a partial fix by using dot for 2-D object arrays, but object array stacks cannot be handled. Closes #11635.
| * | | | | | Merge pull request #11673 from sotte/mention_geomspace_in_linspace_docsMatti Picus2018-08-081-1/+4
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Add geomspace to "See also" of linspace
| | * | | | | | DOC: Add geomspace to "See also" of linspaceStefan Otte2018-08-071-1/+4
| | | | | | | |
| * | | | | | | Merge pull request #11692 from charris/remove-duplicate-codeMatti Picus2018-08-081-5/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Remove duplicate code.
| | * | | | | | | MAINT: Remove duplicate code.Charles Harris2018-08-081-5/+0
| | | |/ / / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The definition of `_complex_types_map` was repeated in the linalg.py file.
| * | | | | | | Merge pull request #11670 from mattip/refactor-mapping-iteratorSebastian Berg2018-08-081-14/+14
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: trivially refactor mapped indexing
| | * | | | | | | MAINT: trivially refactor mapped indexingmattip2018-08-061-14/+14
| | | |/ / / / / | | |/| | | | |
| * | | | | | | DOC: Replace <type 'exceptions.ValueError'> with ValueErrorTaylor Smith2018-08-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced <type 'exceptions.ValueError'> with ValueError in the outdated broadcasting documentation