summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Revert "NEP: Mark NEP 18 as accepted"revert-11693-accept-nep18Stephan Hoyer2018-09-121-2/+1
|
* Merge pull request #11929 from derek-kim/masterMatti Picus2018-09-123-11/+11
|\ | | | | DOC: #defining -> #define / Added a short explanation for Numeric
| * DOC: Add missing commaEric Wieser2018-09-111-1/+1
| |
| * STY: revert whitespace changesEric Wieser2018-09-111-3/+3
| |
| * DOC: #defining -> #defineDerek Kim2018-09-112-8/+8
| |
| * DOC: #defining -> #define / Added a short explanation for Numeric, whichDerek Kim2018-09-112-6/+6
| | | | | | | | is archaic.
* | Merge pull request #10602 from eric-wieser/dtype-__str__-__repr__-in-pythonCharles Harris2018-09-114-474/+328
|\ \ | | | | | | MAINT: Move dtype string functions to python
| * | MAINT: Move dtype string functions to pythonEric Wieser2018-08-194-474/+328
| | | | | | | | | | | | | | | | | | Doing proper error checking of string concatenation in python super tedious. As a results, we're not doing it, making us prone to exceptions turning into segfaults. This moves all of the __str__ and __repr__ functions, where speed is irrelevant, into np.core._dtype.
* | | Merge pull request #11909 from mattip/flake8-cleanupsCharles Harris2018-09-116-6/+2
|\ \ \ | | | | | | | | MAINT: flake8 cleanups
| * | | MAINT: remove redundant importsmattip2018-09-096-6/+2
| | | |
* | | | Merge pull request #11921 from eric-wieser/fix-bitnameCharles Harris2018-09-112-67/+51
|\ \ \ \ | | | | | | | | | | MAINT: Don't rely on `__name__` in bitname - use the information directly from the typeinfo.
| * | | | MAINT: Don't use `__name__` to inspect type informationEric Wieser2018-09-102-67/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It makes much more sense to get this information directly from the typeinfo / dtype, rather than roundtripping it though a string. The following code produces the same output (on 64-bit windows, python 3) before and after this change: ``` In [4]: { ...: name: np.core.numerictypes.bitname(info.type) ...: for name, info in sorted(np.core.numerictypes._concrete_typeinfo.items()) ...: } Out[4]: {'bool': ('bool', 8, 'b1'), 'byte': ('int', 8, 'i1'), 'cdouble': ('complex', 128, 'c16'), 'cfloat': ('complex', 64, 'c8'), 'clongdouble': ('complex', 128, 'c16'), 'datetime': ('datetime', 64, 'M8'), 'double': ('float', 64, 'f8'), 'float': ('float', 32, 'f4'), 'half': ('float', 16, 'f2'), 'int': ('int', 32, 'i4'), 'intp': ('int', 64, 'i8'), 'long': ('int', 32, 'i4'), 'longdouble': ('float', 64, 'f8'), 'longlong': ('int', 64, 'i8'), 'object': ('object', 0, 'O'), 'short': ('int', 16, 'i2'), 'string': ('bytes', 0, 'S'), 'timedelta': ('timedelta', 64, 'm8'), 'ubyte': ('uint', 8, 'u1'), 'uint': ('uint', 32, 'u4'), 'uintp': ('uint', 64, 'u8'), 'ulong': ('uint', 32, 'u4'), 'ulonglong': ('uint', 64, 'u8'), 'unicode': ('str', 0, 'U'), 'ushort': ('uint', 16, 'u2'), 'void': ('void', 0, 'V')} ``` Before this change, it was possible to call `bitname` on the abstract types, and get garbage results: ``` In [7]: { ...: name: np.core.numerictypes.bitname(t) ...: for name, t in sorted(np.core.numerictypes._abstract_types.items()) ...: } Out[7]: {'character': ('character', 0, 'c'), 'complexfloating': ('complexfloating', 0, 'c'), 'flexible': ('flexible', 0, 'f'), 'floating': ('floating', 0, 'f'), 'generic': ('generic', 0, 'g'), 'inexact': ('inexact', 0, 'i'), 'integer': ('integer', 0, 'i'), 'number': ('number', 0, 'n'), 'signedinteger': ('signedinteger', 0, 's'), 'unsignedinteger': ('unsignedinteger', 0, 'u')} ``` Now it raises a ValueError for all abstract types
* | | | | Merge pull request #11930 from giuliobenetti/masterCharles Harris2018-09-111-1/+1
|\ \ \ \ \ | | | | | | | | | | | | DOC: fix scipy-sphinx-theme license path
| * | | | | DOC: fix scipy-sphinx-theme license pathGiulio Benetti2018-09-111-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In base LICENSE.txt under scipy-sphinx-theme, LICENSE.txt path is wrong. Point to right path: doc/scipy-sphinx-theme/LICENSE.txt instead of: doc/sphinxext/LICENSE.txt Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
* | | | | Merge pull request #11891 from tylerjereddy/rm_exec_command_1Eric Wieser2018-09-101-4/+8
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove exec_command() from build_ext
| * | | | | MAINT: remove exec_command from build_extTyler Reddy2018-09-101-4/+8
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * the single usage of exec_command in distutils build_ext module has been replaced with a standard library usage of subprocess
* | | | | Merge pull request #11899 from tylerjereddy/rm_exec_command_3Charles Harris2018-09-102-3/+15
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove exec_command from system_info.py
| * | | | | MAINT: remove exec_command from system_info.pyTyler Reddy2018-09-102-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replace exec_command() with its standard library equivalent in distutils system_info module
* | | | | | DOC: Clarify difference between PySequence_GETITEM, PyArray_GETITEM (#11914)Yug Khanna2018-09-101-3/+5
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Issue #10966 fix * Issue #10966 fix Added documentation for return of standard python types on success for `PyArray_GETITEM` * Update c-api.array.rst * Update c-api.array.rst * Update c-api.array.rst * Update c-api.array.rst * Update c-api.array.rst * Update c-api.array.rst * Update c-api.array.rst
* | | | | Merge pull request #11922 from eric-wieser/test-maximum_sctypeCharles Harris2018-09-101-0/+27
|\ \ \ \ \ | |/ / / / | | | | | TST: Add tests for maximum_sctype
| * | | | TST: Add tests for maximum_sctypeEric Wieser2018-09-091-0/+27
| | | | |
* | | | | Merge pull request #11900 from tylerjereddy/rm_exec_command_4Charles Harris2018-09-102-9/+40
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove exec_command from gnu.py
| * | | | | MAINT: remove exec_command from gnu.pyTyler Reddy2018-09-102-9/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * replaced usage of exec_command() with standard library equivalent in distutils gnu module
* | | | | | BUG: Fix memory leak in pyfragments.swg (#11877)Christopher Pezley2018-09-101-2/+4
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: Fix memory leak in pyfragments.swg Make sure to Py_DECREF the Py_ArrayDesc created in the definition of SWIG_CanCastAsInteger for long and unsigned long. Fixes #11876 * fixup! BUG: Fix memory leak in pyfragments.swg
* | | | | Merge pull request #11920 from ↵Eric Wieser2018-09-091-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | YannickJadoul/test_numerictypes.py-TestSctypeDict-class-fix TST: Fix 'def' test_numerictypes.py::TestSctypeDict to 'class' to enable the test
| * | | | | TST: Fix 'def' of core/tests/test_numerictypes.py::TestSctypeDict test class ↵Yannick Jadoul2018-09-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | to 'class' to actually enable the test
* | | | | | Merge pull request #11912 from mattip/dtype-offset-intCharles Harris2018-09-092-3/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: dtype offset and itemsize is limited by range of C int
| * | | | | | DOC: dtype offset is limited to intmattip2018-09-092-3/+5
| | | | | | |
* | | | | | | Merge pull request #11693 from shoyer/accept-nep18Charles Harris2018-09-081-1/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | NEP: Mark NEP 18 as accepted
| * | | | | | Mark NEP 18 as acceptedStephan Hoyer2018-08-081-1/+2
| | | | | | | | | | | | | | | | | | | | | We should wait to merge this until Nathaniel's has had the chance to read it.
* | | | | | | Merge pull request #11882 from eric-wieser/isscalar-docsCharles Harris2018-09-081-0/+36
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | DOC: Recommend the use of `np.ndim` over `np.isscalar`, and explain the differences
| * | | | | | | DOC: Recommend the use of `np.ndim` over `np.isscalar`, and explain the ↵Eric Wieser2018-09-041-0/+36
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | differences
* | | | | | | Merge pull request #11906 from tylerjereddy/shippable_arm_ciCharles Harris2018-09-081-0/+70
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | TST: add shippable ARMv8 to CI
| * | | | | | TST: add shippable ARMv8 to CI.Tyler Reddy2018-09-071-0/+70
| | | | | | |
* | | | | | | Merge pull request #11904 from QuLogic/core-parametrizeCharles Harris2018-09-082-95/+49
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Use pytest for some already-parametrized core tests
| * | | | | | | TST: Parametrize print tests.Elliott Sales de Andrade2018-09-071-40/+31
| | | | | | | |
| * | | | | | | TST: Use pytest for some already-parametrized tests.Elliott Sales de Andrade2018-09-071-55/+18
| |/ / / / / /
* | | | | | | Merge pull request #11907 from tswast/patch-1Charles Harris2018-09-071-1/+1
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | Link HOWTO_DOCUMENT to specific section on docstrings
| * | | | | | Link to specific section on docstringsTim Swast2018-09-071-1/+1
|/ / / / / /
* | | | | | Merge pull request #11896 from charris/fix-pytest-failuresCharles Harris2018-09-069-50/+30
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix matrix PendingDeprecationWarning suppression for pytest 3.8+.
| * | | | | | BUG: Fix matrix PendingDeprecationWarning suppression for pytest 3.8+.Charles Harris2018-09-069-50/+30
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pytest < 3.8 ignored warnings issued during test collection, but that changed in pytest 3.8 and the method NumPy used to suppress the PendingDeprecationWarning for matrices no longer worked, or rather, was exposed as not working. The fix here is to suppress the warning in pytest.ini and pytesttester.py , which should work as long as the tests are the only places left where NumPy uses matrices. An alternate fix is to delay the construction of matrices in the tests until they are actually run, which has the virtue of test localization but is a bit more complicated. See https://github.com/pytest-dev/pytest/issues/3945 for discussion.
* | | | | | Merge pull request #11895 from QuLogic/linalg-parametrizeEric Wieser2018-09-061-70/+52
|\ \ \ \ \ \ | | | | | | | | | | | | | | TST: Parametrize some linalg tests over types.
| * | | | | | TST: Parametrize some linalg tests over types.Elliott Sales de Andrade2018-09-061-70/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When code does: ```python def test(): def check(dtype): # code for dtype in [types]: check(dtype) ``` replace it with: ```python @pytest.mark.parametrize('dtype', [types]) def test(dtype): # code ```
* | | | | | | Merge pull request #11893 from QuLogic/duplicate-testMatti Picus2018-09-061-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | TST: Fix duplicated test name.
| * | | | | | TST: Fix duplicated test name.Elliott Sales de Andrade2018-09-061-2/+2
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | It's a straightforward copy&paste error, but it means not all these tests get run.
* | | | | | Merge pull request #11892 from QuLogic/parametrize-scalarMatti Picus2018-09-051-21/+22
|\ \ \ \ \ \ | | | | | | | | | | | | | | TST: Parametrize PEP3118 scalar tests.
| * | | | | | TST: Parametrize PEP3118 scalar tests.Elliott Sales de Andrade2018-09-061-21/+22
|/ / / / / / | | | | | | | | | | | | | | | | | | This enables seeing results for all dtypes even if one fails.
* | | | | | Merge pull request #11837 from eric-wieser/basics-docsCharles Harris2018-09-051-33/+151
|\ \ \ \ \ \ | | | | | | | | | | | | | | DOC: Make clear the connection between numpy types and C types
| * | | | | | DOC: Make clear the connection between numpy types and C typesEric Wieser2018-09-041-33/+151
| | | | | | |
* | | | | | | Merge pull request #11880 from charris/fix-scipy-compatMatti Picus2018-09-052-38/+45
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | BUG: The multiarray/ufunc merge broke old wheels.