Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #19854 from BvB93/nanfunctions | Charles Harris | 2021-09-09 | 2 | -13/+20 |
|\ | | | | | BUG: Fixed an issue wherein `var` would raise for 0d object arrays | ||||
| * | TST: Expand `TestNanFunctions_NumberTypes` with 0d arrays | Bas van Beek | 2021-09-09 | 1 | -12/+17 |
| | | |||||
| * | BUG: Fixed an issue wherein `var` would raise for 0d object arrays | Bas van Beek | 2021-09-09 | 1 | -1/+3 |
| | | |||||
* | | MAINT: Mark type-check-only ufunc subclasses as ufunc aliases during runtime | Bas van Beek | 2021-09-09 | 1 | -7/+10 |
|/ | |||||
* | Merge pull request #19827 from charris/cleanup-header-guards-common | Charles Harris | 2021-09-08 | 25 | -72/+81 |
|\ | | | | | MAINT: Standardize guards in numpy/core/src/common. | ||||
| * | MAINT: Standardize guards in numpy/core/src/common. | Charles Harris | 2021-09-05 | 25 | -72/+81 |
| | | |||||
* | | Merge pull request #19826 from charris/cleanup-header-guards | Charles Harris | 2021-09-08 | 24 | -75/+89 |
|\ \ | | | | | | | MAINT: Standardize guards in numpy/core/include | ||||
| * | | MAINT: Standardize header guards, | Charles Harris | 2021-09-05 | 24 | -75/+89 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | This standardizes the header guards in numpy/core/include/numpy. The standard here is `<path>_<name>_H_` For instance, the file file: numpy/core/include/numpy/arrayobject.h guard: NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ Macro names can be up to 255 characters, so length is not a problem. This convention comes from the Google code style and keeps files with the same name but different locations from stepping on each other. | ||||
* | | Merge pull request #19829 from charris/cleanup-header-guards-multiarray | Charles Harris | 2021-09-08 | 46 | -153/+155 |
|\ \ | | | | | | | MAINT: Standardize guards in numpy/core/src/multiarray. | ||||
| * | | MAINT: Standardize guards in numpy/core/src/multiarray. | Charles Harris | 2021-09-05 | 46 | -153/+155 |
| |/ | |||||
* | | Merge pull request #19850 from nsait-linaro/replace_ssize_t_with_py_ssize_t | Charles Harris | 2021-09-08 | 1 | -1/+1 |
|\ \ | | | | | | | Replace posix specific ssize_t with py_ssize_t to compile on windows | ||||
| * | | Replace use of ssize_t with Py_ssize_t | Niyas Sait | 2021-09-08 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | Noticed a compilation error on windows/python3.10 due to missing definition of ssize_t which seems POSIX specific. Use generic Py_ssize_t provided by python | ||||
* | | | TST: Make nanfunc test ignore overflow instead of xfailing test | Sebastian Berg | 2021-09-07 | 1 | -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/nanfunctions | Charles Harris | 2021-09-05 | 2 | -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 arrays | Bas van Beek | 2021-09-05 | 1 | -2/+4 |
| | | | | | | | | | | | | Use the same approach as in numpy/numpy#9013 | ||||
| * | | MAINT: Copy the `_methods._std` code-path for handling `nanstd` object-arrays | Bas van Beek | 2021-09-04 | 1 | -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 Beek | 2021-09-03 | 1 | -0/+17 |
| | | | |||||
| * | | TST: Expand the old `TestNanFunctions_IntTypes` test with non-integer number ↵ | Bas van Beek | 2021-09-03 | 1 | -71/+52 |
| | | | | | | | | | | | | types | ||||
| * | | BUG: Fixed an issue wherein certain `nan<x>` functions could fail for object ↵ | Bas van Beek | 2021-09-03 | 1 | -3/+20 |
| | | | | | | | | | | | | arrays | ||||
* | | | Merge pull request #18884 from seiko2plus/breathe_doxygen | Matti Picus | 2021-09-05 | 2 | -0/+3 |
|\ \ \ | | | | | | | | | DOC: Add support for documenting C/C++ via Doxygen & Breathe | ||||
| * | | | DOC: Add support for documenting C/C++ via Doxygen & Breathe | Sayed Adel | 2021-08-30 | 2 | -0/+3 |
| | | | | |||||
* | | | | STY: Small cleanups of includes in *.c files. | Charles Harris | 2021-09-03 | 64 | -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-includes | Charles Harris | 2021-09-03 | 71 | -105/+144 |
|\ \ \ \ | | | | | | | | | | | MAINT: Minor include rationalizations. | ||||
| * | | | | MAIN: Minor include rationalization. | Charles Harris | 2021-09-03 | 71 | -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-#19077 | Charles Harris | 2021-09-03 | 2 | -4/+3 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: fix unhashable instance and potential exception identified by LGTM. | ||||
| * | | | | | fix unhashable instance and potential exception identified by LGTM | Sista Seetaram | 2021-09-03 | 2 | -2/+1 |
| | | | | | | |||||
| * | | | | | fixed unhashable instance and potential exception as listed in LGTM#19077 | Sista Seetaram | 2021-09-03 | 2 | -3/+3 |
| | | | | | | |||||
* | | | | | | Merge pull request #19809 from charris/fix-compiler-warnings | Charles Harris | 2021-09-03 | 1 | -6/+6 |
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | MAINT: Fix compiler warnings generated by convert_datatype.h. | ||||
| * | | | | | MAINT: Fix warnings generated by convert_datatype.h | Charles Harris | 2021-09-01 | 1 | -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_integer | Charles Harris | 2021-09-02 | 6 | -9/+117 |
|\ \ \ \ \ | |_|/ / / |/| | | | | ENH: Add `is_integer` to `np.floating` & `np.integer` | ||||
| * | | | | STY: Use a more descriptive variable name | Bas van Beek | 2021-09-02 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | | | | | | Co-Authored-By: Charles Harris <charlesr.harris@gmail.com> | ||||
| * | | | | DOC: Misc documentation improvements | Bas van Beek | 2021-08-31 | 1 | -1/+5 |
| | | | | | |||||
| * | | | | ENH: Add `integer.is_integer` | Bas van Beek | 2021-08-31 | 5 | -2/+37 |
| | | | | | | | | | | | | | | | | | | | | Match `int.is_integer`, which was added in python/cpython#6121 | ||||
| * | | | | TST: Add tests for `np.floating.is_integer` | Bas van Beek | 2021-08-31 | 2 | -1/+22 |
| | | | | | |||||
| * | | | | ENH: Add `is_integer` to the `np.floating` subclasses | Bas van Beek | 2021-08-31 | 3 | -7/+55 |
| | | | | | |||||
* | | | | | Merge pull request #19815 from mwtoews/maint-ioerror | Charles Harris | 2021-09-02 | 20 | -47/+47 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: revise OSError aliases (IOError, EnvironmentError) | ||||
| * | | | | | MAINT: revise OSError aliases (IOError, EnvironmentError) | Mike Taves | 2021-09-02 | 20 | -47/+47 |
| | | | | | | |||||
* | | | | | | TST: Update the IO-related typing tests | Bas van Beek | 2021-09-02 | 2 | -3/+22 |
| | | | | | | |||||
* | | | | | | MAINT: Make the `_SupportsGetItem` protocol positional-only | Bas van Beek | 2021-09-02 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | ENH: Use custom file-like protocols instead of `typing.IO` | Bas van Beek | 2021-09-02 | 3 | -22/+49 |
| | | | | | | |||||
* | | | | | | DEP: Deprecate quote_args (from numpy.distutils.misc_util) | Mike Taves | 2021-09-02 | 1 | -1/+8 |
|/ / / / / | |||||
* | | | | | Merge pull request #19781 from mwtoews/foreach-item | Matti Picus | 2021-09-01 | 8 | -75/+72 |
|\ \ \ \ \ | | | | | | | | | | | | | MAINT: refactor "for ... in range(len(" statements | ||||
| * | | | | | MAINT: refactor "for ... in range(len(" statements | Mike Taves | 2021-09-01 | 8 | -75/+72 |
| | |_|/ / | |/| | | | |||||
* | | | | | STY: Use the PEP 457 positional-only syntax in `numpy.typing` | Bas van Beek | 2021-08-31 | 2 | -100/+102 |
| | | | | | |||||
* | | | | | STY: Use the PEP 457 positional-only syntax in the stub files | Bas van Beek | 2021-08-31 | 10 | -135/+168 |
| |/ / / |/| | | | |||||
* | | | | BLD: Drop typing extension as an (optional) runtime dependency | Bas van Beek | 2021-08-30 | 2 | -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.7 | Bas van Beek | 2021-08-30 | 33 | -199/+57 |
| | | | | |||||
* | | | | MAINT: Drop .py code-paths specific to Python 3.7 | Bas van Beek | 2021-08-30 | 7 | -570/+417 |
|/ / / | |||||
* | | | Merge pull request #19715 from yashasvimisra2798/casting_patch1 | Matti Picus | 2021-08-29 | 2 | -1/+12 |
|\ \ \ | | | | | | | | | BUG: Casting bool_ to float16 | ||||
| * | | | lint: fix flake8 errors | Yashasvi Misra | 2021-08-27 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | Signed-off-by: Yashasvi Misra <yashasvimisra_bh@srmuniv.edu.in> |