summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | | Update add_newdocs.pyEric Wieser2018-02-161-1/+1
| | | | | | | |
| * | | | | | | DOC: promote_types is _not_ associative by design, despite the fact it would ↵Eric Wieser2018-02-081-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | be nice if it was Also give an example of the non-associative case.
* | | | | | | | Merge pull request #10606 from charris/fix-polynomial-testCharles Harris2018-02-161-3/+3
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | MAINT: Do not use random roots when testing roots.
| * | | | | | | | MAINT: Do not use random when testing roots.Charles Harris2018-02-161-3/+3
| | |_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `check_roots` function in numpy/polynomial/tests/test_classes.py was using random numbers without a seed to generate the random roots to be checked. This made the test sensitive to the random state, with the result that currently two of the roots are close together and fail the test to the default seven digit precision when running on the Mac. The failure is probably due to a combination of library and compiler differences between the Mac and the other platforms tested.. The fix here is to hardwire the test values rather than use random numbers.
* | | | | | | | BUG: Align type definition with generated lapack (#10477)xoviat2018-02-1611-819/+256
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Align type definitions * Regenerate sources * Replace BytesIO * Consolidate executables * Create directories on PY2 * Revise step name * Consolidate directory creation * Don't catch makedirs errors * Revise step name * Add header source
* | | | | | | | Merge pull request #10604 from luzpaz/misc-typosCharles Harris2018-02-165-5/+5
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | MAINT: Fix Misc. typos
| * | | | | | | Misc. typosluz.paz2018-02-165-5/+5
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 -I ../numpy-whitelist.txt` Whitelist consists of: ``` amin ans behaviour cancellation dum initialise ith nd ot splitted writeable ``` .
* | | | | | | Merge pull request #10596 from charris/update-sphinxext-submoduleCharles Harris2018-02-152-5/+7
|\ \ \ \ \ \ \ | |_|_|/ / / / |/| | | | | | DOC: Update sphinxext submodule hash.
| * | | | | | BUG: Functions in ma should not add Notes to existing docstrings.Charles Harris2018-02-151-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, the `doc_note` function in `numpy.ma.core.py` is called to add a "Notes" section to the existing docstrings of the unmasked versions of some functions. This may result in duplicate "Notes" sections, or incorrect placement, which are errors in current numpydoc. This PR disables the `doc_note` function until we can decide on the proper way to deal with the problem.
| * | | | | | DOC: Update sphinxext submodule hash.Charles Harris2018-02-151-0/+0
| | | | | | |
* | | | | | | Merge pull request #10381 from eric-wieser/fix-segfaultAllan Haldane2018-02-153-15/+48
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | BUG/ENH: Improve output for structured non-void types
| * | | | | | | ENH: Always show dtype fields in the array repr, even for non-voidEric Wieser2018-02-152-7/+13
| | | | | | | |
| * | | | | | | BUG: Fix crash on non-void structured array reprEric Wieser2018-02-152-7/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-9821
| * | | | | | | BUG: Show the base of a compound dtype even when it doesn't subclass voidEric Wieser2018-02-152-2/+7
| | | | | | | |
* | | | | | | | Merge pull request #10592 from derrickaw/guide-to-numpyRalf Gommers2018-02-152-6/+6
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | DOC: Corrected url for Guide to NumPy book; see part of #8520, all of…
| * | | | | | | | DOC: Corrected url for Guide to NumPy book; see part of #8520, all of #9088, ↵derrick2018-02-142-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and all of #10572
* | | | | | | | | Merge pull request #10589 from xoviat/from-templateCharles Harris2018-02-151-1/+1
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | | BUG: fix entry_points typo for from-template
| * | | | | | | | BUG: fix entry_points typo for from-templatexoviat2018-02-141-1/+1
| | |/ / / / / / | |/| | | | | |
* | | | | | | | Merge pull request #10588 from charris/remove-unique-optimizationCharles Harris2018-02-142-17/+31
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | BUG: Revert sort optimization in np.unique.
| * | | | | | | BUG: Revert sort optimization in np.unique.Charles Harris2018-02-142-17/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The optimization was to sort integer subarrays by treating them as strings of unsigned bytes. That worked fine for finding the unique subarrays, but the sort order of the results could be unexpected. Closes #10495.
* | | | | | | | MAINT: Fix typos in DISTUTILS.rst.txt. (#10583)fo402252018-02-141-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix typo * Fix typos
* | | | | | | | Merge pull request #10571 from pv/fix-condCharles Harris2018-02-132-31/+127
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | BUG: Fix corner-case behavior of cond() and use SVD when possible
| * | | | | | | | MAINT: Small grammar fixes to documentation.Charles Harris2018-02-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | [ci skip]
| * | | | | | | | BUG: linalg: fix corner-case behavior of cond() + use SVD if possiblePauli Virtanen2018-02-122-31/+127
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make np.linalg.cond(A, p) always use SVD for p=+-2 and not only p=None. Ensure inf is returned instead of nan when the condition number diverges for +/-2 norm. Ignore errors when inverting matrices for p = +-1, 'fro', +-inf, so that spurious LinAlgErrors are not raised. In those cases, report non-invertible matrices as having cond=inf. Add additional tests for cond().
* | | | | | | | | Merge pull request #10576 from luzpaz/misc-typosJaime2018-02-136-6/+6
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: Misc. typos
| * | | | | | | | | Misc. typosluz.paz2018-02-126-6/+6
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | Found via `codespell -q 3 -I ../numpy-whitelist.txt`
* | | | | | | | | Merge pull request #10544 from ahaldane/fix_subclass_str_recursionEric Wieser2018-02-112-6/+63
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: infinite recursion in str of 0d subclasses
| * | | | | | | | | BUG: infinite recursion in str of 0d subclassesAllan Haldane2018-02-112-6/+63
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #10360
* | | | | | | | | Merge pull request #10553 from eric-wieser/promote-type-tidyAllan Haldane2018-02-111-70/+54
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | MAINT: Cleanups to promote_types and result_types
| * | | | | | | | | MAINT: Push variables and return statements in PyArray_ResultType to ↵Eric Wieser2018-02-091-18/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | innermost scopes This makes extracting helper functions easier
| * | | | | | | | | MAINT: Push no-op type promotion check further downEric Wieser2018-02-081-53/+33
| | |_|_|/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | This does mean we do a redundant refcount change, but that's a small price to pay
* | | | | | | | | BUG: Fix travis failure in previous commit (#10566)Eric Wieser2018-02-101-1/+2
| | | | | | | | |
* | | | | | | | | Merge pull request #10555 from eric-wieser/malloc-no-memoryAllan Haldane2018-02-102-7/+6
|\ \ \ \ \ \ \ \ \ | |_|_|/ / / / / / |/| | | | | | | | BUG: Add missing PyErr_NoMemory() after malloc
| * | | | | | | | BUG: Add missing PyErr_NoMemory() after mallocEric Wieser2018-02-092-7/+6
| |/ / / / / / /
* | | | | | | | Merge pull request #10548 from eric-wieser/malloc-errorAllan Haldane2018-02-091-0/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | BUG: Set missing exception after malloc
| * | | | | | | BUG: Set missing exception after mallocEric Wieser2018-02-061-0/+1
| | | | | | | |
* | | | | | | | Merge pull request #10337 from eric-wieser/warning-causeCharles Harris2018-02-081-10/+58
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | ENH: Show the silenced error and traceback in warning __cause__
| * | | | | | | | ENH: Show the silenced error and traceback in warning __cause__Eric Wieser2018-01-071-10/+58
| | | | | | | | |
* | | | | | | | | Merge pull request #10324 from eric-wieser/histogram-range-comparisonCharles Harris2018-02-082-7/+65
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: Fix crashes when using float32 values in uniform histograms
| * | | | | | | | | BUG: Fix crashes when using float32 values in uniform histogramsEric Wieser2018-02-022-7/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8123, closes #9189, fixes #10319 This is a workaround to #10322, not a fix for it. Adds tests for cases where bounds are more precise than the data, which led to inconsistencies in the optimized path.
* | | | | | | | | | Merge pull request #10543 from charris/warn-malformed-dataAllan Haldane2018-02-091-1/+8
|\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | DEP: Issue FutureWarning when malformed records detected.
| * | | | | | | | | | DEP: Issue FutureWarning when malformed records detected.Charles Harris2018-02-081-1/+8
| | |_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently records specified as lists of lists instead of lists of tuples are caught and fixed up in fromrecords. Unfortunately, the detection is failing due to various fixes in the records module. The failure is worked around by generalizing the detection. A FutureWarning that such record specifications will result in an error in the future is also emitted. Fixes #10344.
* | | | | | | | | | Merge pull request #10546 from mlamarre/fix_swig_make_fortranCharles Harris2018-02-081-0/+8
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | | | BUG: In numpy.i, clear CARRAY flag if wrapped buffer is not C_CONTIGUOUS.
| * | | | | | | | | White spacesMathieu Lamarre2018-02-081-1/+1
| | | | | | | | | |
| * | | | | | | | | Swig tool: Clear CARRAY flag when buffer is not C_CONTIGUOUSMathieu Lamarre2018-02-081-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Leave the flag if there's only one non unit dim
| * | | | | | | | | Swig tool: Clear CARRAY flag when setting FARRAYMathieu Lamarre2018-02-081-0/+2
|/ / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise the returned array has both flags, which creates all sorts of confusing runtime behaviors. C_CONTIGUOUS : True F_CONTIGUOUS : True Doesn't cause a crash, but some functions like copy() works in F_CONTIGUOUS others like element wise operators assume C_CONTIGUOUS, obviously this becomes a nightmare to debug.
* | | | | | | | | Merge pull request #10401 from eric-wieser/fix-10394Charles Harris2018-02-062-17/+27
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | BUG: Resize bytes_ columns in genfromtxt
| * | | | | | | | | BUG: Resize bytes_ columns in genfromtxtEric Wieser2018-01-152-17/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-10394, due to regression in gh-10054
* | | | | | | | | | Merge pull request #10529 from eric-wieser/fix-pep3118-errorCharles Harris2018-02-062-5/+24
|\ \ \ \ \ \ \ \ \ \ | | |_|_|/ / / / / / | |/| | | | | | | | BUG: Provide a better error message for out-of-order fields
| * | | | | | | | | BUG: Provide a better error message for out-of-order fieldsEric Wieser2018-02-062-5/+24
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes gh-10389