summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Add release note.fix/seed-sequence-zerosRobert Kern2020-06-101-0/+13
|
* BUG: Ensure SeedSequence 0-padding does not collide with spawn keysRobert Kern2020-06-092-2/+37
| | | | | | | | | | | | | Fixes #16539 The implicit 0-padding that is done to small entropy inputs to make them the size of the internal pool conflicts with the spawn keys, which start with an appended 0. In order to maintain stream compatibility with unspawned `SeedSequence`s, we explicitly 0-pad short inputs out to the pool size only if the spawn key is provided, and thus would trigger the bug. This should minimize the impact on users that were not encountering the bug.
* DOC: Fix ``np.ma.core.doc_note`` (#16311)Takanori H2020-06-092-11/+35
| | | * fix np.ma.core.doc_note
* Merge pull request #16515 from person142/add-type-stubsMatti Picus2020-06-0936-0/+2516
|\ | | | | ENH: add type stubs from numpy-stubs
| * MAINT: avoid more division by zero in typing test causing aarch64 to failJosh Wilson2020-06-071-5/+6
| |
| * MAINT: only run typing tests on python > 3.6 and < 3.9Josh Wilson2020-06-071-2/+5
| | | | | | | | | | Mypy doesn't work with 3.9 yet, and 3.6 doesn't work because it doesn't the py.typed marker.
| * MAINT: avoid divide by zero in typing test causing aarch64 tests to failJosh Wilson2020-06-071-1/+1
| |
| * DOC: Add a release note about types being addedJosh Wilson2020-06-071-0/+8
| |
| * MAINT: modify mypy error line parsing to work on windowsJosh Wilson2020-06-071-2/+14
| | | | | | | | It currently splits on ":", which causes problems with drives.
| * MAINT: merge typing requirements into test requirementsJosh Wilson2020-06-072-2/+3
| | | | | | | | This will make them get picked up in CI runs.
| * MAINT: move typing tests cases into a subdirectory of numpy/testsJosh Wilson2020-06-0728-6/+6
| |
| * ENH: add type stubs from numpy-stubsJosh Wilson2020-06-0635-0/+2491
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the type stubs and tests from numpy-stubs. Things this entails: - Copy over the stubs (numpy/__init__.pyi and numpy/core/_internal.pyi) - The only modification made was removing `ndarray.tostring` since it is deprecated - Update some setup.py files to include pyi files - Move the tests from numpy-stubs/tests into numpy/tests - Skip them if mypy is not installed (planning on setting up CI in a future PR) - Add a mypy.ini; use it to configure mypy in the tests - It tells mypy where to find NumPy in the test env - It ignores internal NumPy type errors (since we only want to consider errors from the tests cases) - Some small edits were made to fix test cases that were emitting deprecation warnings - Add numpy/py.typed so that the types are picked up in an installed version of NumPy
* | Merge pull request #16446 from dgasmith/einsum_orderSebastian Berg2020-06-082-2/+48
|\ \ | | | | | | BUG: fixes einsum output order with optimization (#14615)
| * | BUG: fixes einsum ouput order with optimization (#14615)Daniel G. A. Smith2020-06-082-2/+48
| | |
* | | Merge pull request #16445 from rgommers/roadmap-updateCharles Harris2020-06-081-41/+60
|\ \ \ | | | | | | | | DOC: update roadmap
| * | | DOC: address review comments on gh-16445Ralf Gommers2020-06-061-7/+17
| | | | | | | | | | | | | | | | Closes gh-13616.
| * | | DOC: update roadmapRalf Gommers2020-06-011-39/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Removes completed items and other outdated content, plus some things that are too detailed or not high-prio enough to be on the roadmap. Add new items that are being actively worked on or for which there's a lot of interest. Link the most relevant NEPs.
* | | | Merge pull request #16504 from bashtage/doc-mv-normCharles Harris2020-06-081-1/+2
|\ \ \ \ | | | | | | | | | | DOC: Correct MV Normal sig
| * | | | DOC: Correct MV Normal sigKevin Sheppard2020-06-051-1/+2
| | |_|/ | |/| | | | | | | | | | Add new kw arg to sig
* | | | DEP: Deprecate inexact matches for mode, searchside (gh-16056)Anirudh Subramanian2020-06-087-71/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously misspelling were allowed by these functions as long as e.g. the first letter matched. They will now check whether the match is exact giving a deprecation warning when it is not. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | Merge pull request #16510 from madphysicist/patch-1Charles Harris2020-06-081-1/+1
|\ \ \ \ | | | | | | | | | | DOC: Minor rounding correction in Generator.binomial
| * | | | DOC: Minor rounding correction in Generator.binomialJoseph Fox-Rabinovitz2020-06-061-1/+1
| |/ / / | | | | | | | | Changed 38.88 from 38 to 39
* | | | Merge pull request #16530 from numpy/dependabot/pip/pytest-5.4.3Charles Harris2020-06-081-1/+1
|\ \ \ \ | | | | | | | | | | MAINT: Bump pytest from 5.4.2 to 5.4.3
| * | | | MAINT: Bump pytest from 5.4.2 to 5.4.3dependabot/pip/pytest-5.4.3dependabot-preview[bot]2020-06-081-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.4.2 to 5.4.3. - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/master/CHANGELOG.rst) - [Commits](https://github.com/pytest-dev/pytest/compare/5.4.2...5.4.3) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | | ENH: Improve the ARM cpu feature detection by parsing /proc/cpuinfo (#16321)Chunlin2020-06-082-25/+268
| | | | | | | | | | | | * when parsing auxv fail, try parsing /proc/cpuinfo
* | | | Merge pull request #16529 from charris/fix-cython-bugMatti Picus2020-06-081-1/+2
|\ \ \ \ | | | | | | | | | | BUG: Fix cython warning in random/_common.pyx.
| * | | | BUG: Fix cython warning in random/_common.pyx.Charles Harris2020-06-071-1/+2
|/ / / / | | | | | | | | | | | | | | | | Fix for #16508. Cython wants every pointer declaration to be on a separate line.
* | | | Merge pull request #16503 from bashtage/bug-broadcast-sizeCharles Harris2020-06-072-0/+70
|\ \ \ \ | | | | | | | | | | BUG:random: Error when ``size`` is smaller than broadcast input shapes.
| * | | | BUG: Correct broadcasting when size is not NoneKevin Sheppard2020-06-052-0/+70
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | Broadcastable size with inputs does not produce an error when size produces a smaller output array than the broadcast input shape. Patch checks that the output shape matches the outer shape of the broadcast fo all inputs and the size when given.
* | | | Merge pull request #16524 from pv/f2py-threadsafe-cb-fixupCharles Harris2020-06-073-19/+22
|\ \ \ \ | | | | | | | | | | MAINT: f2py: move thread-local declaration definition to common macro
| * | | | MAINT: f2py: move thread-local declaration definition to common macroPauli Virtanen2020-06-082-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Move compiler thread-local declaration detection to a common macro. Also support C11 thread_local declaration, if available.
| * | | | DOC: add release note about f2py threadsafetyPauli Virtanen2020-06-071-0/+4
| | | | |
* | | | | Merge pull request #16522 from seiko2plus/issue_16516Charles Harris2020-06-071-3/+4
|\ \ \ \ \ | |/ / / / |/| | | | MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4
| * | | | MAINT:ARMHF Fix detecting feature groups NEON_HALF and NEON_VFPV4Sayed Adel2020-06-071-3/+4
| | | | |
* | | | | Merge pull request #16519 from pv/f2py-threadsafe-cbCharles Harris2020-06-075-47/+206
|\ \ \ \ \ | |/ / / / |/| | | | BUG: f2py: make callbacks threadsafe
| * | | | TST: f2py: add test for callback threadsafetyPauli Virtanen2020-06-071-0/+50
| | | | |
| * | | | BUG: numpy/f2py: put callback globals to thread-local storagePauli Virtanen2020-06-074-47/+156
|/ / / /
* | | | Merge pull request #16520 from pv/f2py-formatting-cleanupCharles Harris2020-06-072-184/+184
|\ \ \ \ | | | | | | | | | | STY: f2py: replace \t by whitespace for readability
| * | | | STY: f2py/rules: replace \t with whitespace for readabilityPauli Virtanen2020-06-071-37/+37
| | | | |
| * | | | STY: f2py/cb_rules: replace \t by whitespace for readabilityPauli Virtanen2020-06-071-147/+147
|/ / / /
* | | | STY: trivial doc style fix in NEP 45. (#16514)Ralf Gommers2020-06-071-3/+4
| | | | | | | | | | | | Main purpose is to merge this and trigger a doc rebuild.
* | | | Merge pull request #16500 from bjnath/move_c_style_linkRalf Gommers2020-06-068-19/+21
|\ \ \ \ | | | | | | | | | | DOC: Point Contributing page to new NEP 45
| * | | | DOC: Add NEP45 and NEP29 targets, use <NEPxx> linksBen Nathanson2020-06-065-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per gh-16500, changed link style to :ref:`<NEPxx>`. Added a NEP45 target to NEP 45, and added a NEP29 target to NEP 29 since it has the irregular NEP0029 target. The two new NEP targets aren't picked up, though the older ones are. Tried make clean in neps and docs. ``` /home/bjn/numpy_git/numpy-1/doc/source/dev/index.rst:191: WARNING: undefined label: nep45 (if the link has no caption the label must precede a section header) HOWTO_RELEASE.rst.txt:43: WARNING: undefined label: nep29 (if the link has no caption the label must precede a section header) HOWTO_RELEASE.rst.txt:50: WARNING: undefined label: nep29 (if the link has no caption the label must precede a section header) ``` The nep objects.inv does seem to have both the nep29 and nep44 targets.
| * | | | DOC: Use intersphinx for NEP referencesBen Nathanson2020-06-045-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Per #16500 discussion, adds link updates to PR. Replaces NEP URLs with intersphinx links in these files: * doc/HOWTO_RELEASE.rst.txt * doc/source/dev/howto-docs.rst * numpy/doc/dispatch.py * numpy/lib/format.py and incorporates @rossbar's #16502 change of `config.py`.
| * | | | DOC: Point Contributing page to new NEP 45Ben Nathanson2020-06-042-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Moved the link for C style to NEP 45. In NEP 45, replaced explicit link to PEP 7 with a :pep: link.
* | | | | DOC: Fixes for 18 broken links (#16472)bjnath2020-06-0617-51/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * DOC: Fixes for 18 broken links This, with PR #16465, should fix nearly all the remaining broken links on the site. 4 or 5 others should be easy to fix and just need attention from someone more knowledgeable -- will open an issue. For release notes with dead links, I could usually find links on archive.org for roughly contemporary versions. * DOC: Update to "Fixes for 18 broken links #16472" * Obsolete links, previously commented out, now deleted: https://github.com/numpy/numpy/pull/16472#discussion_r433928958 * Semantic markup for reference to Python class: https://github.com/numpy/numpy/pull/16472#discussion_r433553928 * Missing :ref: in internal link: https://github.com/numpy/numpy/pull/16472#discussion_r433554484 Not included: Resolution on using external/internal doc link in .py: https://github.com/numpy/numpy/pull/16472#discussion_r433554824 * DOC: Add internal link for 'Fixes for 18 broken links' PR #16472 Making reference [1] an internal link in function_base.py => numpy.vectorize.html * DOC: Redirect 2 link fixes in PR #16472 * governance.rst link reverted * ununcs.rst `overridden` link goes where it was meant to per https://github.com/numpy/numpy/pull/16472#pullrequestreview-424666070
* | | | | MAINT: make Py_SET_SIZE and Py_SET_TYPE macros a bit safer (#16501)Thomas A Caswell2020-06-061-2/+2
| |/ / / |/| | | | | | | | | | | | | | | | | | | This is the spelling of the compatibility macro that CPython is recommending. Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | Merge pull request #15162 from seberg/reduce-axes-tryMatti Picus2020-06-0410-595/+479
|\ \ \ \ | | | | | | | | | | BUG,MAINT: Fix issues with non-reduce broadcasting axes
| * | | | BUG: The reduction output must not cause the input to be broadcastSebastian Berg2020-05-302-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was previously checked for, but during the refactor using NPY_ITER_REDUCTION_AXIS to allocate the result in the iterator instead of manually was lost here. Einsum has a similar issue, but this is not modified here.
| * | | | MAINT: Address review comments related to NPY_ITER_REDUCTION_AXISSebastian Berg2020-05-304-11/+11
| | | | | | | | | | | | | | | | | | | | Incorporate suggestions by Marten and Eric.