summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Bump pytz from 2021.1 to 2021.3dependabot/pip/pytz-2021.3dependabot[bot]2021-10-041-1/+1
| | | | | | | | | | | | | | Bumps [pytz](https://github.com/stub42/pytz) from 2021.1 to 2021.3. - [Release notes](https://github.com/stub42/pytz/releases) - [Commits](https://github.com/stub42/pytz/compare/release_2021.1...release_2021.3) --- updated-dependencies: - dependency-name: pytz dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
* Merge pull request #20026 from mattip/pypy-7.3.6Charles Harris2021-10-046-20/+25
|\ | | | | MAINT: Test PyPy3.8
| * revert debug stuffmattip2021-10-041-1/+1
| |
| * add pypy windows test runmattip2021-10-032-1/+7
| |
| * add another call to gc.collect in break_cyclesmattip2021-10-031-2/+2
| |
| * use venv instead of virtualenvmattip2021-10-032-5/+4
| |
| * activate build/tests on pypy3.8rc1mattip2021-09-301-13/+13
| |
* | Merge pull request #20008 from BvB93/window-funcCharles Harris2021-10-042-22/+103
|\ \ | | | | | | BUG: Fix the `lib.function_base` window functions ignoring extended precision float dtypes
| * | STY: Directly use a float rather than the `float64` constructorBas van Beek2021-10-041-1/+1
| | |
| * | TST: Add more tests for `np.kaiser`Bas van Beek2021-09-301-0/+21
| | |
| * | BUG: Fix the `lib.function_base` window functions ignoring extended ↵Bas van Beek2021-09-302-22/+82
| | | | | | | | | | | | precision float dtypes
* | | Merge pull request #20006 from BvB93/function-baseCharles Harris2021-10-047-39/+474
|\ \ \ | | | | | | | | ENH: Add annotations for `np.lib.function_base` part 1
| * | | MAINT: Remove `slice` from the accepted `np.place` mask-typesBas van Beek2021-10-012-1/+2
| | | | | | | | | | | | | | | | `np.place` uses the `np.core.multiarray._insert` function under the hood, not to be confused with `np.insert` (which does accept slices)
| * | | TST: Add typing tests for `ndarray.__getitem__`Bas van Beek2021-09-302-0/+15
| | | |
| * | | TST: Add typing tests for `np.lib.function_base`Bas van Beek2021-09-302-0/+117
| | | |
| * | | ENH: Add annotations for `ndarray.__getitem__`Bas van Beek2021-09-301-2/+20
| | | |
| * | | ENH: Add annotations for `np.lib.function_base`Bas van Beek2021-09-303-37/+321
| |/ /
* | | Merge pull request #19997 from HaoZeke/f2py_tabsCharles Harris2021-10-043-266/+266
|\ \ \ | | | | | | | | STY: Harmonize rules with cb_rules for f2py
| * | | MAINT: Reviewer commentsRohit Goswami2021-09-302-6/+6
| | | | | | | | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
| * | | STY: Kill all \t with fire in f2pyRohit Goswami2021-09-293-266/+266
| | | |
| * | | STY: Harmonize rules with cb_rules for f2pyRohit Goswami2021-09-291-253/+253
| | | |
* | | | Merge pull request #20018 from WarrenWeckesser/show-shapesCharles Harris2021-10-042-4/+38
|\ \ \ \ | | | | | | | | | | ENH: core: More informative error message for broadcast(*args)
| * | | | ENH: core: More informative error message for broadcast(*args)warren2021-10-012-4/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When broadcast(*args) fails because of a shape mismatch, include in the error message which arguments caused the mismatch and what their shapes are. For example, instead of >>> np.broadcast([[0, 0, 0]], [[1], [1]], [2, 2]) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: shape mismatch: objects cannot be broadcast to a single shape we now get >>> np.broadcast([[0, 0, 0]], [[1], [1]], [2, 2]) Traceback (most recent call last): File "<stdin>", line 1, in <module> ValueError: shape mismatch: objects cannot be broadcast to a single shape. Mismatch is between arg 0 with shape (1, 3) and arg 2 with shape (2,). This also affects broadcast_arrays() and broadcast_shapes(). Closes gh-8345.
* | | | | Merge pull request #20019 from sistaseetaram/lgtm-mypy-pluginCharles Harris2021-10-041-3/+2
|\ \ \ \ \ | | | | | | | | | | | | MAINT:redundant 'else' statement with 'for' loop#19077
| * | | | | Indent Update #20019Sista Seetaram2021-10-041-1/+1
| | | | | | | | | | | | | | | | | | Co-authored-by: Bas van Beek <43369155+BvB93@users.noreply.github.com>
| * | | | | MAINT:redundant 'else' statement with 'for' loop#19077Sista Seetaram2021-10-021-3/+2
| |/ / / /
* | | | | Merge pull request #20016 from seberg/issue-20009Charles Harris2021-10-041-4/+63
|\ \ \ \ \ | | | | | | | | | | | | BUG: Add a warning for user dtypes modifying casts after use
| * | | | | BUG: Add a warning for user dtypes modifying casts after useSebastian Berg2021-10-011-4/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds a RuntimeWarning if a modification for a cast happens after said cast was already used (which could happen accidentally).
* | | | | | BUG: fix time cast-safety for `factor*unit` e.g. in `10**6*ms == 1*s` (#19731)Tyler Reddy2021-10-022-1/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * for `datetime64` units smaller than `s`, handle some common/reasonable "metrix prefix" casting conversions like 1000 ns == 1 us * this adds support specifically for equivalencies that span 10^3 and 10^6 fold, but there are even more beyond that, and if we want to handle them all we may want to abstract to a handler function * that said, this still seems like a solid improvement that covers some of the more common cases? * MAINT: PR 19731 revisions * add support/testing for datetime unit conversions at the scale of 10^9, when below the 32-bit integer overflow limit * raise a `TypeError` when `M8` unit magnitude exceeds `INT_MAX` * MAINT: PR 19731 revisions * add new test `test_datetime_prefix_conversions()` that performs bidirectional metric time prefix casting checks * use `long long int` for `true_meta_num` on 32-bit systems * some C code whitespace changes requested during review * MAINT: PR 19731 revisions * flake8-related fixes * MAINT: PR 19731 revisions * use a fixed size `int64_t` type for `true_meta_num` on Windows to allow the overflow check to happen properly * whitespace adjustments for the C code based on review comments * MAINT: PR 19731 revisions * improve the portability of the overflow check for datetime unit integer prefixes * MAINT: PR 19731 revisions * simplify the changes by using `NumPyOS_strtoll` (less custom C needed this way) * MAINT: cleanup after merge conflict. * MAINT: PR 19731 revisions * based on reviewer feedback, make negative datetime units a `TypeError` (including regression test)
* | | | | | BUG,DEP: Allow (arg-)partition to accept `uint64` indices (#20000)Bas van Beek2021-10-026-36/+79
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: Allow (arg-)partition to accept `uint64` indices * DEP: Deprecate the use of booleans as (arg-)partition indices * TST,DEP: Add tests for the `parametrize` bool-index-deprecation * TST: Add more dtype-based tests for (arg-)partition * DOC: Add a release note for the (arg-)partition boolean deprecation * DEP: Explicitly mention numpy 1.22 in the (arg-)partition deprecation warning Co-Authored-By: Sebastian Berg <sebastian@sipsolutions.net> Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
* | | | | DOC: add example showing how to convert POSIX timestamps to datetime64 (#18984)Jonathan Reichelt Gjertsen2021-10-011-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | * DOC: add example showing how to convert POSIX timestamps to datetime64 Co-authored-by: Melissa Weber Mendonça <melissawm@gmail.com>
* | | | | Merge pull request #19899 from arunppsg/issue16751_add_note_to_docsMelissa Weber Mendonça2021-10-012-11/+83
|\ \ \ \ \ | | | | | | | | | | | | DOC: replace return type in np.ma.* docstring
| * | | | | TST: added tests for np.ma.ones and np.ma.zerosArun2021-09-221-3/+47
| | | | | |
| * | | | | MAINT: Addded variables to __all__Arun2021-09-201-2/+2
| | | | | |
| * | | | | DOC: replace return type in np.ma* docstringArun2021-09-201-6/+34
| | | | | |
* | | | | | Merge pull request #15847 from dcaliste/recursMelissa Weber Mendonça2021-10-012-1/+20
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: avoid infinite recurrence on dependencies in crackfortran
| * | | | | | BUG: avoid infinite recurrence on dependencies in crackfortranDamien Caliste2021-10-012-1/+20
|/ / / / / /
* | | | | | MAINT: correct linker flags for NAG Fortran compiler (#20010)Dima Pasechnik2021-10-011-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 1ac3cbea412c7d9ff467a8e599609621887c6cdd and replaces #19992 with documented nagfor option -unsharedrts, not -unsharedf95, as pointed out by ThemosTsikas
* | | | | | DOC: Fix typos in the random and f2py documentation. (#20004)MalikIdreesHasanKhan2021-10-013-3/+3
| | | | | | | | | | | | | | | | | | * Fix typos
* | | | | | Merge pull request #19981 from cmarmo/npyarray-enumsMatti Picus2021-10-012-54/+75
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Deindent some sphinx declarations to avoid warnings.
| * | | | | | Add comments to prevent revert.Chiara Marmo2021-09-302-0/+21
| | | | | | |
| * | | | | | Fix scope of some sphinx declarations to avoid warnings.Chiara Marmo2021-09-282-54/+54
| | | | | | |
* | | | | | | Merge pull request #19969 from BvB93/array-apiSebastian Berg2021-09-303-11/+27
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | MAINT: Misc `np.array_api` annotation fixes
| * | | | | | | Disallow `k=None` for the `eye` functionBas van Beek2021-09-291-1/+1
| | | | | | | |
| * | | | | | | MAINT: Import `Array` from the `_array_object` namespaceBas van Beek2021-09-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changed as `Array` does not live in the main `np.array_api` namespace
| * | | | | | | MAINT: Remove the `Sequence` encapsulation from variadic argumentsBas van Beek2021-09-272-3/+3
| | | | | | | |
| * | | | | | | MAINT: Add a missing subscription slot to `NestedSequence`Bas van Beek2021-09-271-2/+3
| | | | | | | |
| * | | | | | | MAINT: Fix invalid parameter types used in `Dtype`Bas van Beek2021-09-271-6/+21
| | | | | | | |
* | | | | | | | Merge pull request #20007 from Mukulikaa/remove-cdocSebastian Berg2021-09-304-174/+0
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | MAINT: Removed the `cdoc` directory
| * | | | | | | MAINT: Removed the cdoc directoryMukulika2021-09-304-174/+0
|/ / / / / / /