summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* DOC: fix docstrings.pr/19857Charles Harris2021-10-082-325/+514
| | | | | Hopefully fix the docstrings of percentile, nanpercentile, quantile, and nanquantile so that CircleCI passes.
* MAINT, ENH [#10736] Add interpolation methods to quantileabel2021-10-063-194/+788
| | | | | | | | | | - Added the missing linear interpolation methods. - Updated the existing unit tests. - Added pytest.mark.xfail for boolean arrays See - https://github.com/numpy/numpy/pull/19857#issuecomment-919258693 - https://github.com/numpy/numpy/issues/19154
* TST: Make nanfunc test ignore overflow instead of xfailing testSebastian Berg2021-09-071-3/+1
| | | | | | This makes the test more precise, and I ran into having to broaden the xfails otherwise, because right now reduce-likes incorrectly faile to give floating point warnings (and I was fixing that).
* Merge pull request #19821 from BvB93/nanfunctionsCharles Harris2021-09-052-75/+89
|\ | | | | BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object arrays
| * MAINT: Let `_remove_nan_1d` attempt to identify nan-containing object arraysBas van Beek2021-09-051-2/+4
| | | | | | | | Use the same approach as in numpy/numpy#9013
| * MAINT: Copy the `_methods._std` code-path for handling `nanstd` object-arraysBas van Beek2021-09-041-6/+3
| | | | | | | | https://github.com/numpy/numpy/blob/410a89ef04a2d3c50dd2dba2ad403c872c3745ac/numpy/core/_methods.py#L265-L270
| * TST: Add more tests for `nanmedian`, `nanquantile` and `nanpercentile`Bas van Beek2021-09-031-0/+17
| |
| * TST: Expand the old `TestNanFunctions_IntTypes` test with non-integer number ↵Bas van Beek2021-09-031-71/+52
| | | | | | | | types
| * BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object ↵Bas van Beek2021-09-031-3/+20
| | | | | | | | arrays
* | Merge pull request #18884 from seiko2plus/breathe_doxygenMatti Picus2021-09-052-0/+3
|\ \ | | | | | | DOC: Add support for documenting C/C++ via Doxygen & Breathe
| * | DOC: Add support for documenting C/C++ via Doxygen & BreatheSayed Adel2021-08-302-0/+3
| | |
* | | STY: Small cleanups of includes in *.c files.Charles Harris2021-09-0364-197/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This puts the following numpy defines at the top of the files before the includes. define NPY_NO_DEPRECATED_API NPY_API_VERSION define _MULTIARRAYMODULE define _UMATHMODULE There are also minor cleanups of <...> vs "..." include styles together with a small fix to the .clang-format file to include "pymem.h" among the Python supplied headers. Further cleanups will follow if clang-format is used on the files but that is not done here.
* | | Merge pull request #19810 from charris/update-some-includesCharles Harris2021-09-0371-105/+144
|\ \ \ | | | | | | | | MAINT: Minor include rationalizations.
| * | | MAIN: Minor include rationalization.Charles Harris2021-09-0371-105/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Replace "Python.h" by <Python.h> - Replace "structmember.h" by <structmember.h> - Replace <npy_config> by "npy_config" - Define PY_SSIZE_T_CLEAN before all Python.h includes in .c files.
* | | | Merge pull request #19818 from sistaseetaram/related-to-#19077Charles Harris2021-09-032-4/+3
|\ \ \ \ | | | | | | | | | | MAINT: fix unhashable instance and potential exception identified by LGTM.
| * | | | fix unhashable instance and potential exception identified by LGTMSista Seetaram2021-09-032-2/+1
| | | | |
| * | | | fixed unhashable instance and potential exception as listed in LGTM#19077Sista Seetaram2021-09-032-3/+3
| | | | |
* | | | | Merge pull request #19809 from charris/fix-compiler-warningsCharles Harris2021-09-031-6/+6
|\ \ \ \ \ | |_|_|_|/ |/| | | | MAINT: Fix compiler warnings generated by convert_datatype.h.
| * | | | MAINT: Fix warnings generated by convert_datatype.hCharles Harris2021-09-011-6/+6
| | |/ / | |/| | | | | | | | | | | | | | The convert_datatype.h file needs to be updated with sized arrays to match the function definitions in convert_datatype.c.
* | | | Merge pull request #19803 from BvB93/is_integerCharles Harris2021-09-026-9/+117
|\ \ \ \ | |_|/ / |/| | | ENH: Add `is_integer` to `np.floating` & `np.integer`
| * | | STY: Use a more descriptive variable nameBas van Beek2021-09-021-4/+4
| | | | | | | | | | | | | | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com>
| * | | DOC: Misc documentation improvementsBas van Beek2021-08-311-1/+5
| | | |
| * | | ENH: Add `integer.is_integer`Bas van Beek2021-08-315-2/+37
| | | | | | | | | | | | | | | | Match `int.is_integer`, which was added in python/cpython#6121
| * | | TST: Add tests for `np.floating.is_integer`Bas van Beek2021-08-312-1/+22
| | | |
| * | | ENH: Add `is_integer` to the `np.floating` subclassesBas van Beek2021-08-313-7/+55
| | | |
* | | | Merge pull request #19815 from mwtoews/maint-ioerrorCharles Harris2021-09-0220-47/+47
|\ \ \ \ | | | | | | | | | | MAINT: revise OSError aliases (IOError, EnvironmentError)
| * | | | MAINT: revise OSError aliases (IOError, EnvironmentError)Mike Taves2021-09-0220-47/+47
| | | | |
* | | | | TST: Update the IO-related typing testsBas van Beek2021-09-022-3/+22
| | | | |
* | | | | MAINT: Make the `_SupportsGetItem` protocol positional-onlyBas van Beek2021-09-021-1/+1
| | | | |
* | | | | ENH: Use custom file-like protocols instead of `typing.IO`Bas van Beek2021-09-023-22/+49
| | | | |
* | | | | DEP: Deprecate quote_args (from numpy.distutils.misc_util)Mike Taves2021-09-021-1/+8
|/ / / /
* | | | Merge pull request #19781 from mwtoews/foreach-itemMatti Picus2021-09-018-75/+72
|\ \ \ \ | | | | | | | | | | MAINT: refactor "for ... in range(len(" statements
| * | | | MAINT: refactor "for ... in range(len(" statementsMike Taves2021-09-018-75/+72
| | |_|/ | |/| |
* | | | STY: Use the PEP 457 positional-only syntax in `numpy.typing`Bas van Beek2021-08-312-100/+102
| | | |
* | | | STY: Use the PEP 457 positional-only syntax in the stub filesBas van Beek2021-08-3110-135/+168
| |/ / |/| |
* | | BLD: Drop typing extension as an (optional) runtime dependencyBas van Beek2021-08-302-42/+0
| | | | | | | | | | | | It might return in the future, but as of the moment we don't need it anymore
* | | MAINT: Drop .pyi code-paths specific to Python 3.7Bas van Beek2021-08-3033-199/+57
| | |
* | | MAINT: Drop .py code-paths specific to Python 3.7Bas van Beek2021-08-307-570/+417
|/ /
* | Merge pull request #19715 from yashasvimisra2798/casting_patch1Matti Picus2021-08-292-1/+12
|\ \ | | | | | | BUG: Casting bool_ to float16
| * | lint: fix flake8 errorsYashasvi Misra2021-08-271-2/+1
| | | | | | | | | | | | Signed-off-by: Yashasvi Misra <yashasvimisra_bh@srmuniv.edu.in>
| * | test: add test_float_to_bool()Yashasvi Misra2021-08-271-7/+9
| | | | | | | | | | | | Signed-off-by: Yashasvi Misra <yashasvimisra_bh@srmuniv.edu.in>
| * | add testYashasvi Misra2021-08-261-0/+6
| | |
| * | updateYashasvi Misra2021-08-191-0/+4
| | |
* | | Remove reference since it's not used (#19766)Illviljan2021-08-271-3/+0
| | |
* | | Fix so doctest passesIllviljan2021-08-271-3/+3
| |/ |/|
* | MAINT: Remove redundant semicolonHowJMay2021-08-274-4/+4
| |
* | Merge pull request #19725 from anntzer/loadtxt-fh-closingMatti Picus2021-08-261-14/+12
|\ \ | | | | | | MAINT: Use a contextmanager to ensure loadtxt closes the input file.
| * | MAINT: Use a contextmanager to ensure loadtxt closes the input file.Antony Lee2021-08-221-14/+12
| | | | | | | | | | | | | | | | | | | | | | | | This seems easier to track that a giant try... finally. Also move the `fencoding` initialization to within the contextmanager, in the rather unlikely case an exception occurs during the call to `getpreferredencoding`.
* | | Update numpy/core/overrides.pySebastian Berg2021-08-251-2/+2
| | | | | | | | | | | | Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
* | | remove import time compileIrit Katriel2021-08-251-30/+8
| | |