summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #9577 from bashtage/dirichlet-alpha-validationCharles Harris2017-08-172-0/+12
|\ | | | | BUG: Missing dirichlet input validation
| * BUG: Missing dirichlet input validationKevin Sheppard2017-08-172-0/+12
| | | | | | | | | | | | | | | | Dirichlet does not validate inputs and hangs when values are zero. Adds check that values are strictly positive as required by the distribution. closes #2089
* | BUG: core: remove extra return statementPauli Virtanen2017-08-171-1/+1
| |
* | BUG: core: blacklist MSVC cabs* on win32Pauli Virtanen2017-08-171-0/+4
| | | | | | | | | | Similarly to hypot() also cabs* on MSVC/win32 mess with floating point mode.
* | TST: core: add a test that exercise untested npymath functionsPauli Virtanen2017-08-173-1/+160
|/ | | | | These functions do not occur currently in numpy codebase either at all or only very indirectly, so they are not tested otherwise.
* TST: add FPU mode check also for pytestPauli Virtanen2017-08-161-0/+54
|
* ENH: check for FPU mode changes in the test suitePauli Virtanen2017-08-163-3/+72
| | | | | Emit a test failure if the FPU mode changes when running a test case, allowing to pinpoint what test caused the mode change.
* BUG: blacklist MSVC hypot() on win32Pauli Virtanen2017-08-161-0/+9
|
* BUG: fix distutils/cpuinfo.py:getoutput()Mike Nolta2017-08-151-1/+1
| | | | | | | | | If getstatusoutput() throws an exception, getoutput() tries to catch it, but then crashes with: UnboundLocalError: local variable 'output' referenced before assignment because it tries to return the non-existent result of getstatusoutput().
* BUG: fix regression in 1.13.x in distutils.mingw32ccompiler.Ralf Gommers2017-08-151-1/+1
| | | | | | Issue was introduced in gh-8454. Thanks to @jennirinker for pointing out the issue and fix. Closes gh-9553.
* DOC, BUG: Fix Python 3.6 invalid escape sequence.Charles Harris2017-08-131-2/+2
| | | | | | | | | The rst markup in numpy/doc/basics.py uses `\s`, which is interpreted by python 3.6 as a deprecated escape sequence. Fix by escaping the `\`. Closes #9551. [ci skip]
* DOC: add example for isscalar on strings (#9361)Christoph Boeddeker2017-08-131-0/+2
|
* BUG: MaskedArray._optinfo is discarded by__eq__/__ne__ (#9540)David Schaefer2017-08-132-0/+20
|
* Merge pull request #9527 from Licht-T/fix-scalar-astypeEric Wieser2017-08-131-13/+14
|\ | | | | BUG: Fix scalar methods to receive keyword arguments
| * BUG: Fix scalar-ravel so that it can receive keyword argumentsLicht Takeuchi2017-08-101-3/+3
| |
| * BUG: Fix scalar-flatten so that it can receive keyword argumentsLicht Takeuchi2017-08-101-3/+4
| |
| * BUG: Fix scalar-view so that it can receive keyword argumentsLicht Takeuchi2017-08-101-3/+3
| |
| * BUG: Fix scalar-searchsorted so that it can receive keyword argumentsLicht Takeuchi2017-08-101-3/+3
| |
| * BUG: Fix scalar-copy so that it can receive keyword argumentsLicht Takeuchi2017-08-101-3/+3
| |
| * BUG: Fix scalar-tobytes so that it can receive keyword argumentsLicht Takeuchi2017-08-091-3/+3
| |
| * BUG: Fix scalar-tostring so that it can receive keyword argumentsLicht Takeuchi2017-08-091-3/+3
| |
| * BUG: Fix scalar-astype so that it can receive keyword argumentsLicht Takeuchi2017-08-071-4/+4
| |
* | Merge pull request #9524 from charris/add_init_to_test_directoriesCharles Harris2017-08-1231-18/+18
|\ \ | | | | | | TST, MAINT: Add `__init__.py` files to tests directories.
| * | TST, MAINT: Add `__init__.py` files to tests directories.Charles Harris2017-08-0631-18/+18
| |/ | | | | | | | | | | | | | | This allows pytest to run with duplicate test file names. Note that `python <path-to-test-file>` no longer works with this change, nor will a simple `pytest numpy`, because numpy is imported from the numpy repository. However, `python runtests.py` and `>>> numpy.test()` are still available.
* | Merge branch 'master' into fix-note-on-quad-precCharles Harris2017-08-1218-53/+64
|\ \
| * \ Merge pull request #9422 from deniederhut/doc/types-formattingCharles Harris2017-08-121-2/+2
| |\ \ | | | | | | | | DOC: correct formatting of basic.types.html
| | * | DOC: reverts some escapes [ci-skip]Dillon Niederhut2017-08-111-2/+2
| | | |
| | * | DOC: removes extraneous whitespace with escapesDillon Niederhut2017-07-271-3/+3
| | | | | | | | | | | | | | | | [ci-skip]
| | * | DOC: correct formatting of basic.types.htmlDillon Niederhut2017-07-261-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the documentation for types allowed in numpy, missing spaces around the backticks for fixed-width formatting cause code examples to appear as plain text, or are causing plain text to appear as code. This commit fixes back tick spacing in the 'Extended Precision' section of the 'Data Types' page.
| * | | MAINT: Use the error_converting macro where possibleEric Wieser2017-08-1117-51/+62
| | | |
* | | | DOC: Adding backslash between double-backtick and s.Danny Hermes2017-08-111-1/+1
|/ / /
* | | MAINT: Use moveaxis instead of rollaxis internally (#9475)Nico Schlömer2017-08-1013-52/+53
| | | | | | | | | | | | | | | Also add a hint to the documentation advising the use of moveaxis over rollaxis. Tests for rollaxis are left alone.
* | | BUG/TST: Fix the polynomial.test_printing tests, which never tested anything ↵Eric Wieser2017-08-101-25/+25
| | | | | | | | | | | | | | | | | | useful assert_ is not a substitute for assert_equal
* | | ENH: Show domain and window as kwargs in reprEric Wieser2017-08-103-6/+6
| | | | | | | | | | | | Also, update the docs with this new repr
* | | BUG: The NAT deprecation warning should not be given for every single valueSebastian Berg2017-08-072-20/+38
| |/ |/| | | | | | | | | | | | | | | This fixes it so that it is at least only given for each inner loop run, which admittingly slightly modifies the output on error (it will not stop at the first NAT, but rather only after the first inner loop finished; this does not relaly bother me though). Closes gh-9528
* | Merge pull request #9522 from eric-wieser/stop-using-obj2sctypeCharles Harris2017-08-064-46/+16
|\ \ | | | | | | BUG: Fix problems with obj2sctype
| * | MAINT: Remove unneeded asfarrayEric Wieser2017-08-061-12/+1
| | | | | | | | | | | | As of gh-7088, x is always a float array anyway
| * | BUG: Don't allow an array to be passed as the dtype argumentEric Wieser2017-08-062-3/+8
| | |
| * | BUG: Don't duplicate the type->dtype conversion logicEric Wieser2017-08-061-31/+7
| | | | | | | | | | | | | | | | | | | | | | | | dtype(t) already does this in descriptor.c This means that `obj2sctype(long)` now returns `np.int64` rather than `None`, because when you duplicate code, its easy to forget something in the second place.
* | | Merge pull request #9505 from eric-wieser/fix-issubdtypeCharles Harris2017-08-0611-22/+86
|\ \ \ | | | | | | | | BUG: issubdtype is inconsistent on types and dtypes
| * | | DEP: Deprecate the coercion of dtype-likes to their superclassEric Wieser2017-08-051-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In many cases, this coercion is surprising, or would be if the user knew about it: * [('a', int)] -> np.flexible * str - > str (!) - not even a numpy type * 'float32' -> np.floating (discards size) * int -> np.signed_integer (not np.integer, as is usually meant)
| * | | DOC: Make example work in python 3Eric Wieser2017-08-051-1/+1
| | | |
| * | | BUG: dtypes are ignored and downcast in issubdtypeEric Wieser2017-08-052-8/+36
| | | | | | | | | | | | | | | | Fixes #9480
| * | | BUG: abstract types did not compare correctly with issubdtypeEric Wieser2017-08-052-2/+11
| | | |
| * | | MAINT: Simplify test for string-likesEric Wieser2017-08-051-2/+1
| | | |
| * | | MAINT: Stop using the undocumented coercion-then-downcast feature of subdtypeEric Wieser2017-08-056-10/+10
| | | |
| * | | BUG: Be explicit about allowing all integer types in matrix exponentiationEric Wieser2017-08-052-1/+7
| | | | | | | | | | | | | | | | Fixes gh-9506, unsigned exponentiation
* | | | Merge pull request #9521 from eric-wieser/numbers.NumberCharles Harris2017-08-062-0/+14
|\ \ \ \ | |_|/ / |/| | | BUG: Make issubclass(np.number, numbers.Number) return true
| * | | BUG: Make issubclass(np.number, numbers.Number) return trueEric Wieser2017-08-052-0/+14
| |/ / | | | | | | | | | An omission from 2d73ff34f48980778b4e808afc76c0c1fa841ba7
* | | Merge pull request #9520 from eric-wieser/remove-TypeTypeseberg2017-08-061-12/+6
|\ \ \ | | | | | | | | MAINT: types.TypeType does not ever need to be used