summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * BUG: Increase default string cast size of longdouble/clongdoubleSebastian Berg2020-03-161-2/+6
| |
| * BUG,MAINT: Remove incorrect special case in string to number castsSebastian Berg2020-03-162-73/+24
| | | | | | | | | | | | | | | | | | The string to number casts fall back to using the scalars and the type setitem function to do the cast. However, before calling setitem, they sometimes already called the Python function for string coercion. This is unnecessary. Closes gh-15608
* | Merge pull request #15771 from anirudh2290/fix_dev_docSebastian Berg2020-03-171-1/+1
|\ \ | | | | | | DOC: Fix runtests example in developer docs
| * | DOC: Fix runtests example in developer docsAnirudh Subramanian2020-03-181-1/+1
| | |
* | | Merge pull request #15768 from charris/update-after-1.18.2-releaseRalf Gommers2020-03-175-7/+81
|\ \ \ | | | | | | | | REL: Update master after 1.18.2 release.
| * | | REL: Update master after 1.18.2 release.Charles Harris2020-03-175-7/+81
| | | |
* | | | BUG: add missing c_distributions.pxd, enables cython use of random C-API ↵Matti Picus2020-03-1614-151/+268
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (gh-15463) xref gh-14778 As pointed out in the comment by @jamesthomasgriffin, we did not include a pxd file to expose the distribution functions documented in the random c-api. This PR adds a c_distributions.pxd file that exposes them. Squashed commits: * BUG: add missing c_distributions.pxd to enable cython use of random C-API * ENH, TST: add npyrandom library like npymath, test cython use of it * BUG: actually prefix f-string with f * MAINT: fixes from review, add _bit_generato_bit_generator.pxd * STY: fixes from review * BLD: don't use nprandom library for mtrand legacy build * TST: WindowsPath cannot be used in subprocess's list2cmdline * MAINT, API: move _bit_generator to bit_generator * DOC: add release note about moving bit_generator * DOC, MAINT: fixes from review * MAINT: redo dtype determination from review
* | | Merge pull request #15762 from numpy/dependabot/pip/pytest-5.4.1Sebastian Berg2020-03-161-1/+1
|\ \ \ | | | | | | | | MAINT: Bump pytest from 5.3.5 to 5.4.1
| * | | MAINT: Bump pytest from 5.3.5 to 5.4.1dependabot/pip/pytest-5.4.1dependabot-preview[bot]2020-03-161-1/+1
|/ / / | | | | | | | | | | | | | | | | | | | | | Bumps [pytest](https://github.com/pytest-dev/pytest) from 5.3.5 to 5.4.1. - [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.3.5...5.4.1) Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* | | MAINT: Test during import to detect bugs with Accelerate(MacOS) LAPACK (#15695)Rakesh Vasudevan2020-03-152-2/+65
| | | | | | | | | | | | | | | | | | | | | * TST: Test during import to detect bugs with Accelerate(MacOS) LAPACK fixes #15647 * Pipeline update for Accelerate(MacOS) testing
* | | Merge pull request #15747 from WarrenWeckesser/unique-with-zero-lenMatti Picus2020-03-152-41/+97
|\ \ \ | | | | | | | | BUG: lib: Handle axes with length 0 in np.unique.
| * | | MAINT: lib: PEP-8 clean up in test_arraysetops.py.Warren Weckesser2020-03-151-38/+41
| | | |
| * | | BUG: lib: Handle axes with length 0 in np.unique.Warren Weckesser2020-03-152-4/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Tweak a few lines so that arrays with an axis with length 0 don't break the np.unique code. Closes gh-15559.
| * | | TST: lib: Add a unit test for np.unique applied to arrays with a length 0 axis.Huon Wilson2020-03-151-0/+35
|/ / / | | | | | | | | | | | | This code is from github user huonw, from this PR: https://github.com/numpy/numpy/pull/15565
* | | Merge pull request #15757 from WarrenWeckesser/fix-azure-pipelinesRalf Gommers2020-03-152-0/+6
|\ \ \ | |/ / |/| | MAINT: CI: Add an explicit 'pr' section to azure-pipelines.yml
| * | MAINT: CI: Run 'apt-get update' in tools/pypy-test.shWarren Weckesser2020-03-151-0/+1
| | | | | | | | | | | | | | | | | | | | | Run 'apt-get update' before 'apt-get install ...' This should fix the failure to build PyPy in the Linux_PyPy3 azure pipelines CI test.
| * | MAINT: CI: Add an explicit 'pr' section to azure-pipelines.ymlWarren Weckesser2020-03-151-0/+5
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Azure-pipelines is currently experiencing an "incident": https://status.dev.azure.com/_event/179641421) From that web page: > Currently CI and PR triggers in YAML for GitHub and Bitbucket > repositories are not working when they are not explicitly listed > in the YAML file. Our expected behavior is that when there are > no explicit triggers in the YAML, the pipelines will trigger on > all commits on all branches and all pull requests. This is > currently not happening. To workaround, please explicitly list > the triggers you want in the YAML file for your pipeline. This PR adds the suggested explicit 'pr' triggers to the YAML file.
* | Merge pull request #15752 from mlamarre/fix_swig_testsCharles Harris2020-03-135-53/+73
|\ \ | | | | | | MAINT: Fix swig tests issue #15743
| * | Fix swig testsMathieu Lamarre2020-03-135-53/+73
|/ / | | | | | | | | resize typemap issue python 3 bytes vs str issue
* | MAINT: Add better error handling in linalg.norm for vectors and clarify it ↵Jim2020-03-123-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | in documentation (#15740) * Clarify `fro` and `nuc` usage in linalg.norm documentation (see #15533). * Add improved error handling when getting Frobenius norm from a vector (see #15533). * Fix comment in linalg norm test. Closes gh-15533.
* | DOC: Do not complain about contiguity when mutating `ndarray.shape` (gh-10600)John Han2020-03-123-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There are multiple conditions that `_attempt_nocopy_reshape` checks for when ndarray.shape is mutated directly. Discussion of #10146 indicated that an error message referencing any type of contiguity would not be correct for all cases, so the error message has been changed to be more general. * ENH: shorten message and use "in-place" * MAINT: typo from review Co-authored-by: hanjohn <hanjohn@users.noreply.github.com> Co-authored-by: mattip <matti.picus@gmail.com>
* | Merge pull request #15745 from WarrenWeckesser/remove-doc-summarizeRalf Gommers2020-03-121-178/+0
|\ \ | | | | | | MAINT: doc: Remove doc/summarize.py
| * | MAINT: doc: Remove doc/summarize.pyWarren Weckesser2020-03-111-178/+0
| | | | | | | | | | | | | | | | | | | | | The code in doc/summarize.py is no longer used and it is not being maintained, so remove it. Closes gh-15708.
* | | DOC: Refactor `np.polynomial` docs using `automodule` (#15662)Ross Barnowski2020-03-1214-775/+349
|/ / | | | | * DOC: Refactor polynomial docs using automodule.
* | NEP 41: First steps towards improved Datatype Support (gh-15506)Sebastian Berg2020-03-112-0/+4370
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This NEP is supposed to: 1. Motivate the whole DType change and lay out a rough plan. 2. Clarify a few mainly high level decision/plans. 3. Get inertia on starting to implement espeically a DTypeMeta class in C, and slowly add new private API working towards Phase II, which is planned t be better specified by NEP 42 and 43. Full list of squashed commits (including suggestions below): * NEP: Create NEP41, proposing a rough plan for new DTypes * Try to clarify how datatypes are "natural" compared to array likes and clean up API breakage section * Fix references (mostly at least) * Add a first draft of a few examples. * Reorganize examples as per suggestion by Marten and add ufunc loop note * Make a pass on the first chunk and number the later stuff to match * Some minaor adjustments * Add, probably silly, picture. * Add pngs, since it is probably easier to render... * Small changes, mainly to see if I can make it render... * Apply suggestions from code review Thanks @crusaderky especially for type reading and all the reference, etc. issues! Co-Authored-By: crusaderky <crusaderky@gmail.com> Co-Authored-By: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> * Tiny fixes, mainly fix title levels hopefully It seems I am not allowd to skip a title level in one point but not another. * Small changes/fixups * Reorganize sections to better fit template. * Further swapping of Detailed Information part. * Make motivation clear and mention user impact section the user impact section is more useful than the actual motivation section.... since the motivation is more technical in nature * Small editing of the first few sections * Some further small type-edits for the later sections * Add a small paragraph mentioning the intention of a fallback * Smaller changes, rework phases at beginning of scopes section * Mention which NEP is to define which bullet point in Phase II * Consolidate point 1+2 into a single point and clarify the incompatible change * Mention the change of how methods are defined in the backcompat section * Add a note at the top of the NEP (will need to be links to other NEPs) This note will almost identiclaly be added to the other NEPs then.. * Fixups mainly based on comments from Ross (large chunks are directly using his suggestions) * Apply suggestions from code review Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> * Incorporate most of Erics comments (which were not already suggestions) * Update doc/neps/nep-0041-improved-dtype-support.rst Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> * Apply suggestions from code review Co-Authored-By: Eric Wieser <wieser.eric@gmail.com> * Small reformatting, fix authors and add drafty acknowledgments Ross does not want authorship, so he has to suffer through this ;). Co-authored-by: crusaderky <crusaderky@gmail.com> Co-authored-by: Maximilian Roos <5635139+max-sixty@users.noreply.github.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | ENH: Add `subok` parameter to np.copy function (cf. gfh6509) (gh-15685)Ross Barnowski2020-03-113-3/+28
| | | | | | | | | | This is largely a re-submission of the original change proposed in #6509. Discussion was hosted in multiple forums including #3474, the numpy mailing list circa 10-2015, and the 02-26-2020 NumPy Triage meeting. This PR closes #3474 and #15570
* | Merge pull request #15738 from rossbar/rm_nnboSebastian Berg2020-03-111-4/+0
|\ \ | | | | | | MAINT: Remove non-native byte order from _var check.
| * | MAINT: Remove non-native byte order from _var check.Ross Barnowski2020-03-101-4/+0
|/ / | | | | | | | | | | | | | | Removes unnecessary code introduced in #15696. Non-native byte orders were explicitly added to the fast-path check in _var for complex numbers. However, the non-native path is unreachable due to coercion in upstream ufuncs.
* | Merge pull request #15696 from rossbar/enh/var_complex_fastpathSebastian Berg2020-03-103-0/+67
|\ \ | | | | | | MAINT: Add a fast path to var for complex input
| * | Added benchmark for _var with complex input.Ross Barnowski2020-03-091-0/+11
| | |
| * | ENH: Adds a fast path to var for complex inputRoss Barnowski2020-03-092-0/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | var currently has a conditional that results in conjugate being called for the variance calculation of complex inputs. This leg of the computation is slow. This PR avoids this computational leg for complex inputs via a type check. Closes #15684
* | | Merge pull request #15724 from charris/stop-testing-noseSebastian Berg2020-03-101-1/+0
|\ \ \ | | | | | | | | TST: Remove nose from the test_requirements.txt file.
| * | | TST: Remove nose from the test_requirements.txt file.Charles Harris2020-03-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nose is unmaintained and raises a DeprecationWarning on import. Removing it from the requirements will cause the legacy tests that need it to be skipped. Nose testing was ended in July 2019 but was raised from the dead when the test_requirements.py file was added in August 2019.
* | | | DOC: Change license date 2019 -> 2020 (gh-15735)Himanshu Garg2020-03-102-2/+2
| | | | | | | | | | | | Update Year 2019 -> 2020
* | | | Merge pull request #15733 from seberg/nep-intersphinxEric Wieser2020-03-091-1/+15
|\ \ \ \ | | | | | | | | | | DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib docs
| * | | | DOC: Allow NEPs to link to python, numpy, scipy, and matplotlib docsSebastian Berg2020-03-091-1/+15
|/ / / / | | | | | | | | | | | | | | | | This was originally added by Matti for use in NEP 41, but splitting it off, since it is generally useful
* | | | Merge pull request #15702 from mwtoews/optparseCharles Harris2020-03-083-49/+42
|\ \ \ \ | | | | | | | | | | MAINT: Replace optparse with argparse for 'doc' and 'tools' scripts
| * | | | MAINT: replace optparse with argparse for 'doc' and 'tools' scriptsMike Taves2020-03-093-49/+42
| | |/ / | |/| |
* | | | Merge pull request #15706 from melissawm/f2py-typos-fixCharles Harris2020-03-083-8/+8
|\ \ \ \ | | | | | | | | | | MAINT: Fixing typos in f2py comments and code.
| * | | | Fixing typos in f2py comments and code.Melissa Weber Mendonca2020-03-043-8/+8
| | | | |
* | | | | Merge pull request #15723 from mattip/fix-logicCharles Harris2020-03-071-4/+7
|\ \ \ \ \ | |_|_|/ / |/| | | | BUG: fix logic error when nm fails on 32-bit
| * | | | BUG: fix logic error when nm fails on 32-bitmattip2020-03-081-4/+7
|/ / / /
* | | | MAINT: use list-based APIs to call subprocesses (#15714)Sebastian Berg2020-03-074-34/+79
| | | | | | | | | | | | | | | | | | | | | | | | * MAINT: use list-based APIs to call subprocesses * TST, MAINT: add a test for mingw32ccompiler.build_import, clean up lib2def Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | DOC: Fix coremath.rst to fix refguide_check (#15718)Pierre de Buyl2020-03-061-1/+6
| | | | | | | | | | | | | | | | | | | | * DOC: fix coremath.rst to fix refguide_check Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | | Merge pull request #15717 from pdebuyl/fix_refguide_datetimeMatti Picus2020-03-061-51/+25
|\ \ \ \ | | | | | | | | | | DOC: update datetime reference to pass refguide
| * | | | Update doc/source/reference/arrays.datetime.rstPierre de Buyl2020-03-061-2/+1
| | | | | | | | | | | | | | | Co-Authored-By: Eric Wieser <wieser.eric@gmail.com>
| * | | | DOC: move deprecation info to apart paragraph.Pierre de Buyl2020-03-061-4/+8
| | | | |
| * | | | reinstate example with offsetPierre de Buyl2020-03-061-0/+2
| | | | |
| * | | | DOC: remove outdated example and sectionPierre de Buyl2020-03-061-51/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove example with timezone Remove section on changes in NumPy 1.11
* | | | | Merge pull request #15716 from mattip/pypy4Matti Picus2020-03-061-3/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | TST: always use 'python -mpip' not 'pip'