| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|\
| |
| | |
DOC: #defining -> #define / Added a short explanation for Numeric
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
is archaic.
|
|\ \
| | |
| | | |
MAINT: Move dtype string functions to python
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
MAINT: flake8 cleanups
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: Don't rely on `__name__` in bitname - use the information directly from the typeinfo.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: fix scipy-sphinx-theme license path
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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>
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: remove exec_command() from build_ext
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* the single usage of exec_command in
distutils build_ext module has been
replaced with a standard library usage
of subprocess
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: remove exec_command from system_info.py
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* replace exec_command() with its standard
library equivalent in distutils system_info
module
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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
|
|\ \ \ \ \
| |/ / / /
| | | | | |
TST: Add tests for maximum_sctype
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: remove exec_command from gnu.py
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* replaced usage of exec_command() with
standard library equivalent in distutils
gnu module
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* 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
|
|\ \ \ \ \
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
YannickJadoul/test_numerictypes.py-TestSctypeDict-class-fix
TST: Fix 'def' test_numerictypes.py::TestSctypeDict to 'class' to enable the test
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
to 'class' to actually enable the test
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: dtype offset and itemsize is limited by range of C int
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
NEP: Mark NEP 18 as accepted
|
| | | | | | |
| | | | | | |
| | | | | | | |
We should wait to merge this until Nathaniel's has had the chance to read it.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
DOC: Recommend the use of `np.ndim` over `np.isscalar`, and explain the differences
|
| | |_|/ / / /
| |/| | | | |
| | | | | | |
| | | | | | | |
differences
|
|\ \ \ \ \ \ \
| |_|_|_|/ / /
|/| | | | | | |
TST: add shippable ARMv8 to CI
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Use pytest for some already-parametrized core tests
|
| | | | | | | | |
|
| |/ / / / / / |
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
Link HOWTO_DOCUMENT to specific section on docstrings
|
|/ / / / / / |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
BUG: Fix matrix PendingDeprecationWarning suppression for pytest 3.8+.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
TST: Parametrize some linalg tests over types.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
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
```
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
TST: Fix duplicated test name.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
It's a straightforward copy&paste error, but it means not all these
tests get run.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
TST: Parametrize PEP3118 scalar tests.
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | | |
This enables seeing results for all dtypes even if one fails.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
DOC: Make clear the connection between numpy types and C types
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| |_|/ / / / /
|/| | | | | | |
BUG: The multiarray/ufunc merge broke old wheels.
|