summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #11710 from mattip/allow-clangCharles Harris2018-08-181-2/+3
|\ | | | | BUG: compiler used is env['CC'], then config_vars['CC']
| * BUG: compiler used is env['CC'], then config_vars['CC']mattip2018-08-101-2/+3
| |
* | 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-1712-214/+109
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Reduce warnings and cleanup redundant c-api documentation
| * | | | | | DOC: reflow paragraph to 80 columnsmattip2018-08-171-9/+7
| | | | | | |
| * | | | | | fixes from reviewmattip2018-08-161-1/+1
| | | | | | |
| * | | | | | DOC: reduce warnings and cleanup redundant c-api documentationmattip2018-08-1412-207/+104
| | | | | | |
* | | | | | | Merge pull request #11738 from sjvs/add-lgtm.ymlCharles Harris2018-08-171-0/+9
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | TST, MAINT: add lgtm.yml to tweak LGTM.com analysis
| * | | | | | fix up filter: it should have been for numpy/random/__init__.pyBas van Schaik2018-08-141-1/+1
| | | | | | |
| * | | | | | Add lgtm.yml for tweaking LGTM.com analysisBas van Schaik2018-08-141-0/+9
| |/ / / / /
* | | | | | 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.
* | | | | | Merge pull request #11610 from tylerjereddy/coverage_C_sourceCharles Harris2018-08-151-0/+24
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | TST: including C source line coverage for CI / codecov
| * | | | | TST: add C code line coverage to codecov reportTyler Reddy2018-08-071-0/+24
| | | | | |
* | | | | | 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
* | | | | | Merge pull request #11740 from mattip/deprecate-fromstring-binaryCharles Harris2018-08-142-1/+6
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | BUG: deprecation triggers segfault
| * | | | | BUG: deprecation triggers segfaultmattip2018-08-142-1/+6
|/ / / / /
* | | | | Merge pull request #11718 from charris/fix-f2py-hangCharles Harris2018-08-141-7/+0
|\ \ \ \ \ | | | | | | | | | | | | BUG: Revert use of `console_scripts`.
| * | | | | BUG: Revert use of `console_scripts`.Charles Harris2018-08-111-7/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes introduced in #10463 caused f2py to hang in somde circumstances. There is may a better fix than this, but until it is implemented it is better to undo the change. Closes #11649.
* | | | | 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
* | | | | | Merge pull request #11731 from matthew-brett/vectorize-doc-fixCharles Harris2018-08-131-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: fix typo in vectorize docstring
| * | | | | | DOC: fix typo in vectorize docstringMatthew Brett2018-08-131-2/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | "an single" typo pointed out by keithbriggs - see gh-11730.
* | | | | | Merge pull request #11729 from matthew-brett/keithbriggs-typo-spotsEric Wieser2018-08-131-1/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | | DOC: fix capitalization of kilojoules
| * | | | | 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-129-2/+162
|\ \ \ \ \ | | | | | | | | | | | | ENH: Add support for ipython latex printing to polynomial
| * | | | | ENH: Add support for ipython latex printing to polynomialEric Wieser2018-08-129-2/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-123-361/+7
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: Remove np.pkgload, which seems to be unusable anyway
| * | | | | | DEP: Remove np.pkgload, which was deprecated in 1.10Eric Wieser2018-08-123-361/+7
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | | |